No items show up in comboboxgadget??

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Fangbeast.

I have this snippet in my code and according to every example I have seen so far, this is the right way to do it but, no items show up in the combobox when I fire this up?? I've searched through the forum but got no ideas for this one.


#Searchmode = 1

ComboBoxGadget(#SearchMode, 156, 542, 75, 20)

AddGadgetItem(#SearchMode, -1, "NoCase")
AddGadgetItem(#SearchMode, -1, "Exact")
AddGadgetItem(#SearchMode, -1, "FindIn")


Fangles
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Iontichy.
ComboBoxGadget(#SearchMode, 156, 542, 75, 20)
Try to make it higher like this:
ComboBoxGadget(#SearchMode, 156, 542, 75, 100)

I think the heigth means the height of the opened combobox
and 20 is just to small to display the text...

---------------
star traveler
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Fangbeast.
ComboBoxGadget(#SearchMode, 156, 542, 75, 20)
Try to make it higher like this:
ComboBoxGadget(#SearchMode, 156, 542, 75, 100)

I think the heigth means the height of the opened combobox
and 20 is just to small to display the text...

---------------
star traveler
I tried it and you are right but that is so weird. How does the opened combo box know the height of single opened item?? I may retire to the home for the terminally confused :)

Fangles
Post Reply