使用 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

主要成員:html


 
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

主要成員:ide


 
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

主要成員:ui


 
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 //按鈕字體
相關文章
相關標籤/搜索