使用 IntraWeb (16) - 基本控件之 TIWList、TIWListbox、TIWComboBox、TIWOrderedListbox
TIWList //列表; 它对应 Html 中的 OL、LI(某些选项下会用表格模拟); TIWListbox 和 TIWComboBox 则对应 Html 在的 Option
TIWListbox //列表框
TIWComboBox //组合下拉框
TIWOrderedListbox //可手动调整顺序的列表; 好像是新增的, 还不成熟
TIWList 所在单元及继承链:
IWHTMLControls.TIWList
主要成员:
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
主要成员:
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
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
主要成员:
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 //按钮字体
使用 IntraWeb (16) - 基本控件之 TIWList、TIWListbox、TIWComboBox、TIWOrderedListbox的更多相关文章
- 使用 IntraWeb (24) - 基本控件之 TIWFileUploader、TIWFile
TIWFileUploader 是基于 Ajax 的上传控件, 最初是 Andrew Valums 开发, 从 IntraWeb XIV 纳入并替换 TIWFile. 虽然从组件面板上还能看到 TIW ...
- 使用 IntraWeb (29) - 基本控件之 TIWAutherList、TIWAutherINI、TIWAutherEvent
TIWAutherList //通过一组户名与密码验证登陆 TIWAutherINI //通过记录户名与密码信息的 #Auth.ini 文件验证登陆 TIWAutherEvent //通过其 OnCh ...
- 使用 IntraWeb (28) - 基本控件之 TIWTemplateProcessorHTML、TIWLayoutMgrHTML、TIWLayoutMgrForm
TIWTemplateProcessorHTML //使用外部的 html 文件做模板 TIWLayoutMgrHTML //直接输入 Html 文本做模板 TIWLayoutMgrForm //这应 ...
- 使用 IntraWeb (26) - 基本控件之 TIWMenu
TIWMenu 的任务是让原来的 TMainMenu 呈现在网页上, 通过其 AttachedMenu 属性关联一个 TMainMenu 是必需的. TIWMenu 所在单元及继承链: IWCompM ...
- 使用 IntraWeb (25) - 基本控件之 TIWRegion
这应该是 IW 中最重要的容器了, 和它同父的还有 TIWTabControl TIWRegion 所在单元及继承链: IWRegion.TIWRegion 主要成员: property Align: ...
- 使用 IntraWeb (23) - 基本控件之 TIWTimer、TIWProgressBar、TIWProgressIndicator、TIWTimeEdit
TIWTimer //和 TTimer 没多大区别, 它的默认事件现在是异步的(OnAsyncTimer), 在网络上使用 OnTimer 肯定是非常糟糕的 TIWProgressBar //进度条 ...
- 使用 IntraWeb (22) - 基本控件之 TIWCalendar
TIWCalendar: 日历控件, 继承于 TIWCustomGrid, 所以它和 TIWGrid 共同属性特多. 它的 Cell 是 TIWCalendarCell 对象, 直接从 TIWGrid ...
- 使用 IntraWeb (20) - 基本控件之 TIWGrid
TIWGrid 最终通过 Html Table 呈现; 其每个 Cell 都是一个 TIWGridCell 对象, Cell 对象的 Control 属性非常好, 可以非常方便地嵌入其他控件. TIW ...
- 使用 IntraWeb (19) - 基本控件之 TIWTreeView
这是个饱受非议的控件; 我通过尝试, 理解了非议, 也能理解作者. 总之向作者的思路靠拢吧, 还是不错的. TIWTreeView 所在单元及继承链: IWCompTreeview.TIWTreeVi ...
随机推荐
- 小议 开源中国 I LOVE YOU js代码
今天在开源中国看到一篇神作<I LOVE YOU js代码>是17号的文章了,也许你已经看过了. 文章非常有意思,由 5 个 "爱心" 组成的一段js代码,能正常执行, ...
- 最小生成树问题------------Prim算法(TjuOj_1924_Jungle Roads)
遇到一道题,简单说就是找一个图的最小生成树,大概有两种常用的算法:Prim算法和Kruskal算法.这里先介绍Prim.随后贴出1924的算法实现代码. Prim算法 1.概览 普里姆算法(Prim算 ...
- Nginx使用笔记
本篇记录使用Nginx的一些tricks. 一.更改默认Web根目录 修改配置文件 Nginx默认的Web根目录是:/usr/share/nginx/html/,一般我们都是习惯的是:/var/www ...
- 洛谷 P1603 斯诺登的密码
我一开始还没看懂非正规数字的意义,以为那里写的单词不算,蒙了好久,而且这题非常考验仔细程度,一不小心就RE,WA. 嗯,好像讲了些废话,那我们看看思路,我的做法和前面的大佬们有些不同,因为这题只有六个 ...
- Windows::Docker::Ubuntu 做 SLAM
如题,这是一件很蛋疼的事情. 为了完成这一件事情,需要达成目标: Ubuntu GUI 必须要能够显示. Ubuntu 可以链接 USB Camera. 目标一 目标1很容易达成. 在 Win10 中 ...
- javascript 模拟按键点击提交
上代码 <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> & ...
- xunsearch 迅搜初探
2014年1月2日 19:34:12 [root@localhost bin]# ./php /usr/local/lamp/xunsearch/sdk/php/util/Quest.php demo ...
- memcache 键名的命名规则以及和memcached的区别
2014年3月27日 07:47:46 Keys---- Data stored by memcached is identified with the help of a key. A keyis ...
- 转载 http://blog.csdn.net/dengta_snowwhite/article/details/6418384
从SDCard保存的txt文件读取中文到android系统中会出现乱码问题,如何解决这个乱码问题,网上有不少解答方法,譬如说利用String temp1 =EncodingUtils.getStrin ...
- extjs6入门:用sencha cmd搭建简单的extjs6项目
开发准备 1.sencha cmd安装 2.extjs6.0.0 gpl正式版下载,地址:https://www.sencha.com/legal/gpl/ ,解压ext-6.0.0-gpl.zip ...