[Gambas-user] Bizarre things with controls
John Rose
john.aaron.rose at ...1601...
Fri Jan 20 20:16:56 CET 2012
When ButtonSearch is clicked, even though the only previous event coding on
TextAreaDetails is to clear & refresh it, text appears in it: this is as
though ComboBoxTitle has been clicked.
To display the Text in the TextBox part of a ComboBox (i.e. ComboBoxTitle,
again in ButtonSearch_Click), it seems to be necessary also to put that
same text as the first item of the list in the ListBox part: that item is
not then shown at runtime in the popup list.
Fragments of code from the attached Test project:
Public Sub ButtonSearch_Click()
ClearTitleAndDetails 'clears TextAreaDetails
.
.
.
With ComboBoxTitle
.Text = "Select Title"
.Add("Select Title")
.Add("T1")
.Add("T2")
.Add("T3")
.Enabled = True
.Refresh
End With
End
Public Sub ComboBoxTitle_Click()
EnableMainControls '
TextAreaDetails.Text = "Lines of text."
End
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test.tar.gz
Type: application/x-gzip
Size: 11330 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120120/ae1f6468/attachment.bin>
More information about the User
mailing list