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

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

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 //按钮字体

转载于:https://my.oschina.net/hermer/blog/320226

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/109720.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • PHP JSON_ENCODE 不转义中文汉字的方法

    PHP JSON_ENCODE 不转义中文汉字的方法ios程序中不识别读取到的JSON数据中\u开头的数据。PHP生成JSON的时候,必须将汉字不转义为\u开头的UNICODE数据。网上很多,但是其实都是错误的,正确的方法是在json_encode中加入一个参数JSON_UNESCAPED_UNICODE(bydefault7#zbphp.com)json_encode($data,JSON_UNESCAPED_U

    2022年7月13日
    21
  • Bluetooth flow control

    Bluetooth flow controlBaseband4.5.3FlowcontrolSincetheRXACLbuffercanbefullwhileanewpayloadarrives,flowcontrolisrequired.TheheaderfieldFLOWinthereturnTXpacketmayuseSTOPorGOinorderto…

    2022年6月5日
    28
  • win10笔记本:掉帧卡顿、开机后卡顿、玩游戏帧数低、GPU占用率上不去,解决办法

    win10笔记本:掉帧卡顿、开机后卡顿、玩游戏帧数低、GPU占用率上不去,解决办法win10笔记本:掉帧卡顿、开机后卡顿、玩游戏帧数低、GPU占用率上不去,解决办法

    2022年6月15日
    76
  • input file 的美化

    input file 的美化原文链接:Styling&CustomizingFileInputstheSmartWay(作者:OsvaldasValutis)这份教程主要介绍如何将与配合、以保持语义化+可访问性为目标辅以少量Javascript来美化。实例网上流传过一些“自定义”元素的方法,试验过但都实现不了像Readerrr上那种上传文件即时显示到内容流里的效果。兴许最烂

    2022年7月25日
    9
  • 字符串转整型与整型转字符串的区别_java字符串转换成整数

    字符串转整型与整型转字符串的区别_java字符串转换成整数面试中被问到了这个问题,当时答得不太好,没有考虑全面,回来总结一下,如有遗漏,欢迎指正。知道C语言中有2个函数atoi()和 itoa(),但对具体实现不是很清楚,现在自己总结实现一下:字符串转整型这个情况稍微复杂一些,要考虑全面字符串开始有空格,要先判断过滤‘ 123’存在符号'+'和'-'要判断存在小数点,也就是’123.45’转为整型是123字符串超过整型int

    2022年10月19日
    3
  • Flink 入门教程

    实时流处理的应用场景现在的社会已然进入了大数据AI时代,各行各业都有大量的数据需要处理,并希望从数据中挖掘价值。下面简单举几个例子:物联网中各种行为结果数据的实时收集分析金融行业中各种交易行为数据结果的实时收集分析电商行业中用户的浏览点击等行为数据结果的实时收集分析…实时流处理的目标低延迟高吞吐正确性可容错(即可以中断,并可以恢复且保证exactlyonce)顺序性(…

    2022年4月4日
    52

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号