[Gambas-user] ComboBox usage

Bruce adamnt42 at gmail.com
Fri Aug 14 22:51:56 CEST 2020



On 14/8/20 10:53 pm, T Lee Davidson wrote:
> However, I disagree that ComboBoxConnectChannel.Text will return the 
> string in the textbox, not the item in the combobox list that the user 
> has selected. While technically correct, the string in the textbox 
> *should* have been set to the text of the currently selected item so the 
> result should be the same. This is how the ComboBox behaves on my system 
> even when using GTK3 instead of Qt5.

Sorry, I was unclear.
I assumed that John wanted to limit the choice to the items in the list. 
If the combobox.ReadOnly (?) property is not set then the user can type 
anything into the text area and tab to the next control. Thus the 
combobox.Text property could return "The Underwear Channel" or whatever 
the user types or pastes in.

b


More information about the User mailing list