message warning and combo boxes
Posted
#1
(In Topic #1337)
Regular

Public Sub Form_Open()
ComboBox1.Add("test 1")
ComboBox1.Add("test 2")
ComboBox1.Add("test 3")
End
Public Sub Button1_Click()
ComboBox1.Select
Message.Warning(ComboBox1.Selected)
End
Public Sub ComboBox1_Click()
ComboBox1.Select
End
AM i even close to figuring it out yet?
Posted
Guru

/comp/gb.qt4/combobox - Gambas Documentation
ComboBox.Select is for selecting text in the editing TextBox (if you want only a drop down list that does not use a TextBox you must set the ComboBox.ReadOnly to True)
ComboBox.Index is for checking the current item
/comp/gb.qt4/combobox - Gambas Documentation
Your ComboBox1_Click event is not needed, just this..
Or maybe like this via the List array..
Posted
Regular

1 guest and 0 members have just viewed this.


