I am having a problem setting the 'default text' in the control to suggest what the control is being used for. Tried SetGadgetText, but that only works if I use #PB_ComboBox_Editable, but I don't want the user to be able to edit the text, so I can use that.
Any suggestions?
Code: Select all
; ComboBoxGadget (#ComboBoxImport, 5, 158, 250 , 20, #PB_ComboBox_Editable)
ComboBoxGadget (#ComboBoxImport, 5, 158, 250 , 20)
; AddGadgetItem (#ComboBoxImport, -1, "Please Select Importer")
AddGadgetItem (#ComboBoxImport, -1, "Item 1")
AddGadgetItem (#ComboBoxImport, -1, "Item 2")
AddGadgetItem (#ComboBoxImport, -1, "Item 3")
AddGadgetItem (#ComboBoxImport, -1, "Item 4")
; SetGadgetText (#ComboBoxImport, "Please Select Importer")
Furthermore, not exactly sure what the best way is to detect the selection and run a program (runprogram) from it.
Any advise would be appreciated.
Thanks & Regards,
Peter