On Mon, 23 Feb 2015, John Rose wrote:
> I want to use ListBoxes but there seems to be no icon for them in the
> IDE's set. I'm using Ubuntu with gb.gui marked as a component which
> presumably results in using the gb.gtk library. How do I obtain a
> ListBox using the IDE?
> 

Sorry to ask this but: Are you *really* sure they are not there? They are
normally in the "View" tab in the form editor's control collection.

> At the moment, I'm using 3 ComboBoxes. I want their selected items to be
> kept in sync i.e. they each contain the same number of items: if the
> user selects an item in one of the ComboBoxes, then the same position
> item should be displayed as selected in the other two. This doesn't
> always seem to work. Coding fragment:
> Public Sub SteckersComboBox_Click()
>   With StopComboBox
>     .Index = SteckersComboBox.Index
>     .Refresh
>   End With
>   With ReflectorAndRotorsComboBox
>     .Index = SteckersComboBox.Index
>     .Refresh
>   End With
> End
> What's wrong with this coding?
> 

[ Is this somehow related to the ListBox question above? Sometimes it is OK
  to ask unrelated things in a single thread but simple-minded people like
  me need to see some structure: a question numbering or a sentence like
  "apart from the topic above". But maybe I'm just extraordinarily slow
  today. ]

Anyways, what does "doesn't always seem to work" mean? Does it work but only
"seem" not to work, i.e. is the Index property updated but the item not
selected or does the Click event not fire sometimes? What is the rest of
your code like? Any Timers which could interfere with your ComboBoxes? It
would be nice if you could send us a minimal project which reproduces the
problem.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to