How do I use the dropdown with Material Design?
I want to specify the focus in the dropdown.
For example, four values have been entered.
Example)
abc
efg←
hij
klm
I want to set the focus on the second efg.
Is there a good way to specify the focus?
Please do not specify by item count.
Is it possible for me to specify by value value?
【Material design】How to use the dropdown
Re: 【Material design】How to use the dropdown
Hi,
Yes, use the value property:
Yes, use the value property:
Code: Select all
Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME<MaterialDesignBlue>) Height(496) Width(912)
Define_Com Class(#PRIM_MD.Dropdown) Name(#Dropdown) Caption('Drop Down') Displayposition(1) Left(56) Parent(#COM_OWNER) Tabposition(1) Top(39) Height(82) Width(320)
Define_Com Class(#PRIM_MD.Edit) Name(#Edit) Caption('Select Value') Displayposition(2) Left(61) Parent(#COM_OWNER) Tabposition(2) Top(157) Width(324)
Define_Com Class(#PRIM_MD.FlatButton) Name(#Button) Caption('Positionate in Selected Value') Displayposition(3) Left(63) Parent(#COM_OWNER) Tabposition(3) Themedrawstyle('Borders1+BorderTheme500+ForegroundMediumPrimary') Top(248) Width(282)
Evtroutine Handling(#Com_owner.Initialize)
#DropDown.Items.Add Value('AAA') Caption('AAAAAAAAAAAAAAA')
#DropDown.Items.Add Value('BBB') Caption('BBBBBBBBBBBBBBB')
#DropDown.Items.Add Value('CCC') Caption('CCCCCCCCCCCCCCC')
Endroutine
Evtroutine Handling(#Dropdown.Changed)
#Edit.Value := #DropDown
Endroutine
Evtroutine Handling(#Button.Click)
#DropDown.Value := #Edit.Value
Endroutine
End_Com
Re: 【Material design】How to use the dropdown
Hi
Thank you very much. It was helpful. Thank you for your consideration.
Thank you very much. It was helpful. Thank you for your consideration.