8288分类目录 8288分类目录 8288分类目录
  当前位置:海洋目录网 » 站长资讯 » 站长资讯 » 文章详细 订阅RssFeed

使用 IntraWeb (16) - 基本控件之 TIWList、TIWListbox、TIWComboBox、TIWOrderedListbox

来源:本站原创 浏览:136次 时间:2021-09-14
使用 IntraWeb (16) - 基本控件之 TIWList、TIWListbox、TIWComboBox、TIWOrderedListbox    


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


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

主要成员:


property Items: TStringList  //property Numbered: Boolean   //是否使用数字编号; 默认 Trueproperty Bulleted: Boolean   //是否使用项目符号; 默认 Falseproperty BulletType: TIWListBulletType //项目符号类型: btDisc(默认)、btCircle、btSquare、btNoneproperty 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 时), 默认 Trueproperty 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(默认)、stEnhancedproperty ButtonColor: TIWColor         //下拉按钮颜色; 须设置 Style = stEnhancedproperty ButtonImage: TIWFileReference //下拉按钮图像; 须设置 Style = stEnhancedproperty 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 //标题字体pr����͵��,�Ըʶ���operty ButtonsFont: TIWFont //按钮字体



  推荐站点

  • At-lib分类目录At-lib分类目录

    At-lib网站分类目录汇集全国所有高质量网站,是中国权威的中文网站分类目录,给站长提供免费网址目录提交收录和推荐最新最全的优秀网站大全是名站导航之家

    www.at-lib.cn
  • 中国链接目录中国链接目录

    中国链接目录简称链接目录,是收录优秀网站和淘宝网店的网站分类目录,为您提供优质的网址导航服务,也是网店进行收录推广,站长免费推广网站、加快百度收录、增加友情链接和网站外链的平台。

    www.cnlink.org
  • 35目录网35目录网

    35目录免费收录各类优秀网站,全力打造互动式网站目录,提供网站分类目录检索,关键字搜索功能。欢迎您向35目录推荐、提交优秀网站。

    www.35mulu.com
  • 就要爱网站目录就要爱网站目录

    就要爱网站目录,按主题和类别列出网站。所有提交的网站都经过人工审查,确保质量和无垃圾邮件的结果。

    www.912219.com
  • 伍佰目录伍佰目录

    伍佰网站目录免费收录各类优秀网站,全力打造互动式网站目录,提供网站分类目录检索,关键字搜索功能。欢迎您向伍佰目录推荐、提交优秀网站。

    www.wbwb.net