You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Width of the dropdown area as a percentage of the dropdown
Member of Data Table DropDown (PRIM_MD.DropDown)
Data Type - Integer

Details


DropDownWidth プロパティはドロップダウン リストの幅をドロップダウン コントロールそのものに対するパーセントで指定します。
これにより、ドロップダウン リストをコントロールよりも広くすることができ、追加情報を表示することができます。


次の例では、ドロップダウンはコントロール幅の 250% です。
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(440) Width(688)
Define_Com Class(#PRIM_MD.DropDown) Name(#DropDown) ColumnHeaderHeight(0) DisplayPosition(1) Label('Label') Left(40) Parent(#COM_OWNER) PromptIcon('arrow_drop_down') RowLines(False) TabPosition(1) Top(40) DropDownWidth(200) DropDownPosition(Bottom)
Define_Com Class(#PRIM_MD.DataTableString) Name(#DropDownColumn) ColumnResize(False) ColumnUnits(Proportion) ColumnWidth(1) DisplayPosition(2) Parent(#DropDown)
Define_Com Class(#PRIM_MD.DataTableString) Name(#DropDownColumn2) ColumnResize(False) ColumnUnits(Proportion) ColumnWidth(1) DisplayPosition(1) Parent(#DropDown)

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)
Add_Entry To_List(#DropDown)
#DropDownColumn.CurrentItem.Value := #Value.AsString
#DropDownColumn2.CurrentItem.Value := #Caption
Endroutine
End_Com

See also

All Component Classes
Technical Reference

  • No labels