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 //按钮字体
分类:
IntraWeb
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
2013-06-13 曾经被忽视的两个小功能
2008-06-13 再学 GDI+[34]: TGPPen - 画笔的缩放变换 - ScaleTransform
2008-06-13 再学 GDI+[33]: TGPPen - 画笔的几何变换 - SetTransform
2008-06-13 再学 GDI+[32]: TGPPen - 拐角长度的限制 - SetMiterLimit
2008-06-13 再学 GDI+[31]: TGPPen - 设置端点连接方式 - SetLineJoin
2008-06-13 再学 GDI+[30]: TGPPen - 用画刷定义的画笔
2008-06-13 问与答[2008-6-13] - 如何测试博客提供的代码?