ドロップダウン - DropDownWidthプロパティ
ドロップダウンの割合(%)で示された、ドロップダウン領域の幅
ドロップダウン (PRIM_LIST.DropDown) のメンバ
データタイプ - 整数
詳細
DropDownWidth プロパティは、ドロップダウンコントロール自体に対する割合として、ドロップダウンリストの幅を指定します。
これにより、コントロールよりもドロップダウンリストの幅が広くなり、追加情報が表示されます。
例
この例では、ドロップダウンはコントロールの幅の 250% です。
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(440) Width(688)
Define_Com Class(#PRIM_LIST.DropDown) Name(#DropDown) Columnheaderheight(0) Columnlines(False) Displayposition(1) Ellipses(Word) Left(40) Parent(#COM_OWNER) Rowlines(False) Showselection(False) Showselectionhilight(False) Tabposition(1) Top(32) Height(25) Width(97) Dropdownwidth(250)
Define_Com Class(#PRIM_LIST.String) Name(#ColumnXDEMOALPH1) Columnunits(Proportion) Columnwidth(1) Displayposition(1) Parent(#DropDown) Showselection(False) Source(#xDemoAlpha128)
Define_Com Class(#PRIM_LIST.Number) Name(#ColumnXDEMONUMB1) Columnunits(Proportion) Columnwidth(1) Displayposition(2) Increment(1) Parent(#DropDown) Showselection(False) Source(#xDemoNumber) Wrap(False)
Evtroutine Handling(#Com_Owner.CreateInstance)
#Com_owner.AddEntry( 1 "One" )
#Com_owner.AddEntry( 2 "Two" )
#Com_owner.AddEntry( 3 "Three" )
#Com_owner.AddEntry( 4 "Four" )
#Com_owner.AddEntry( 5 "Five" )
Endroutine
Mthroutine Name(AddEntry)
Define_Map For(*input) Class(#xDemoNumber) Name(#Value)
Define_Map For(*input) Class(#xDemoAlpha128) Name(#Caption)
#xDemoNumber := #Value
#xDemoAlpha128 := #Caption
Add_Entry To_List(#DropDown)
Endroutine
End_Com