
Width of the dropdown area as a percentage of the dropdown
Member of Data Table DropDown (PRIM_MD.DropDown)
Data Type - Integer
Details
The DropDownWidth property specifies the width of the drop down list as a percentage to the drop down control itself. This allows the drop down list to be wider than the control to show additional information.
Example
In this example, the drop down is 250% of the width of the control.
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
V14 SP2 - November 2017