TIWList            //列表; 它对应 Html 中的 OL、LI(某些选项下会用表格模拟); TIWListbox 和 TIWComboBox 则对应 Html 在的 Option
TIWListbox         //列表框
TIWComboBox        //组合下拉框
TIWOrderedListbox  //可手动调整顺序的列表; 好像是新增的, 还不成熟


TIWList 所在单元及继承链:
IWHTMLControls.TIWList < TIWCustomControl < TIWBaseHTMLControl < TIWBaseControl < TIWVCLBaseControl < TControl < TComponent < TPersistent < TObject

主要成员:
property Items: TStringList  //
property Numbered: Boolean   //是否使用数字编号; 默认 True
property Bulleted: Boolean   //是否使用项目符号; 默认 False
property BulletType: TIWListBulletType //项目符号类型: btDisc(默认)、btCircle、btSquare、btNone
property RenderMode: TIWListRenderMode //最终在 Html 中的呈现方式: rmTable(使用表格)、rmHTMLList(使用 Html 标准列表); 默认是 rmTable, 我推荐后者 

procedure Clear  //



TIWListbox 所在单元及继承链:
IWCompListbox.TIWListbox < TIWCustomListbox < TIWCustomListCombo < TIWCustomControl < TIWBaseHTMLControl < TIWBaseControl < TIWVCLBaseControl < TControl < TComponent < TPersistent < TObject

主要成员:
property ItemIndex: Integer   //
property Items: TStringList   //
property Sorted: Boolean      //是否排序
property MultiSelect: Boolean //能否多选

property Confirmation: string        //
property DoSubmitValidation: Boolean //
property Editable: Boolean           //
property SelectedValue: string     //ItemsHaveValues = True 时, 键值对中的"值" 
property SelectedText: string      //ItemsHaveValues = True 时, 键值对中的"键" 
property Text: TCaption            //当前文本
property BGColor: TIWColor         //背景色
property FocusColor: TIWColor      //有焦点时的背景色
property AutoHideOnMenuActivation: Boolean //是否在 IWMenu 使用时隐藏该控件 
property ItemsHaveValues: Boolean  //= True 时, 每行字符串则当做键值对处理, 这时只显示键
property NoSelectionText: string   //未选标示; 默认是: -- No Selection --
property Required: Boolean         //是否是必选; 好像 MultiSelect = True 时无效
property RequireSelection: Boolean //是否隐藏未选标示(当 ItemIndex <> -1 时), 默认 True
property UseSize: Boolean          //是否使用设计时的宽度; 默认是 True, False 时将适宽

property OnChange: TNotifyEvent       //
property OnAsyncClick: TIWAsyncEvent  //
property OnAsyncDoubleClick: TIWAsyncEvent //
property OnAsyncChange: TIWAsyncEvent      //

procedure Clear  //



TIWComboBox 所在单元及继承链:
IWCompListbox.TIWComboBox < TIWCustomComboBox < TIWCustomListCombo < TIWCustomControl < TIWBaseHTMLControl < TIWBaseControl < TIWVCLBaseControl < TControl < TComponent < TPersistent < TObject

TIWComboBox 主要成员同 TIWListBox, 另多几个:
property Style: TIWCustomComboBoxStyle //两种样式: stNormal(默认)、stEnhanced
property ButtonColor: TIWColor         //下拉按钮颜色; 须设置 Style = stEnhanced
property ButtonImage: TIWFileReference //下拉按钮图像; 须设置 Style = stEnhanced
property NonEditableAsLabel: Boolean   //= True, 且 Editable = False 时, 将以 IWLabel 呈现



TIWOrderedListbox 所在单元及继承链:
IWCompOrderedListbox.TIWOrderedListbox < TIWCustomControl < TIWBaseHTMLControl < TIWBaseControl < TIWVCLBaseControl < TControl < TComponent < TPersistent < TObject

主要成员:
property Caption: TCaption       //标题
property MoveDownCaption: string //向下按钮的标题
property MoveUpCaption: string   //向上按钮的标题
property ButtonWidth: Integer    //上下两按钮的宽度
property Items: TStringList   //
property ItemIndex: Integer   //?
property MultiSelect: Boolean //能否多选
property ItemsFont: TIWFont   //文本字体
property CaptionFont: TIWFont //标题字体
property ButtonsFont: TIWFont //按钮字体


posted on 2014-06-13 16:05  万一  阅读(2849)  评论(0编辑  收藏  举报