SECC0
03-24-2009, 03:22 PM
Hi.
I want to create rollout with 2 elements - textBox and Listbox with AutoComplete.
But I don't know how to use AutoComplete property :banghead:
Here's an example, but it's don't use autoComplete..
My question is : Can I use autoComplete in this case?
Thanks.
Sorry for my english.
(
ArrMod = for n in GeometryClass.classes where n.creatable collect n as string
rollout roll_type "" width:131 height:229
(
dotNetControl edt5 "System.Windows.Forms.TextBox" pos:[5,4] width:122 height:20
dotNetControl listMatch "System.Windows.Forms.listBox" pos:[5,30] width:122 height:200
on edt5 TextChanged txt do
(
ArrList = #()
for i in ArrMod do
(
if matchPattern i pattern: (edt5.text +"*") == true then appendIfUnique ArrList i \
else listMatch.items.clear()
)
sort ArrList
roll_type.listMatch.items.AddRange ArrList
)
on roll_type open do
(
for i = 1 to ArrMod.count do ArrMod[i][1] = toUpper ArrMod[i][1]
roll_type.listMatch.items.AddRange (sort ArrMod)
)
)
createdialog roll_type
setfocus roll_type.edt5
)
I want to create rollout with 2 elements - textBox and Listbox with AutoComplete.
But I don't know how to use AutoComplete property :banghead:
Here's an example, but it's don't use autoComplete..
My question is : Can I use autoComplete in this case?
Thanks.
Sorry for my english.
(
ArrMod = for n in GeometryClass.classes where n.creatable collect n as string
rollout roll_type "" width:131 height:229
(
dotNetControl edt5 "System.Windows.Forms.TextBox" pos:[5,4] width:122 height:20
dotNetControl listMatch "System.Windows.Forms.listBox" pos:[5,30] width:122 height:200
on edt5 TextChanged txt do
(
ArrList = #()
for i in ArrMod do
(
if matchPattern i pattern: (edt5.text +"*") == true then appendIfUnique ArrList i \
else listMatch.items.clear()
)
sort ArrList
roll_type.listMatch.items.AddRange ArrList
)
on roll_type open do
(
for i = 1 to ArrMod.count do ArrMod[i][1] = toUpper ArrMod[i][1]
roll_type.listMatch.items.AddRange (sort ArrMod)
)
)
createdialog roll_type
setfocus roll_type.edt5
)
