Re: [Gambas-user] Arrays of controls..

2011-02-11 Thread Stephen Bungay
Yes it worked. I'm just so used to typing PRIVATE SUB ... that I gapped it and then couldn't see the forest for the darn trees in the way. On 02/11/2011 04:00 PM, EA7DFH wrote: > El 11/02/11 21:18, Stephen Bungay escribió: > > > >> ' This one does not trap >> PRIVATE SUB ToggleButtons_click(

Re: [Gambas-user] Issue 29 in gambas: Draw then DrawAlpha with imlib component produces error

2011-02-11 Thread gambas
Updates: Status: Accepted Labels: -Version -GUI-Any Version-TRUNK GUI-GTK Comment #1 on issue 29 by benoit.m...@gmail.com: Draw then DrawAlpha with imlib component produces error http://code.google.com/p/gambas/issues/detail?id=29 (No comment was entered for this change.)

Re: [Gambas-user] Issue 30 in gambas: someimage.Draw in imlib component raises signal 11 upon second execution

2011-02-11 Thread gambas
Comment #1 on issue 30 by kevinfis...@eightvirtues.com: someimage.Draw in imlib component raises signal 11 upon second execution http://code.google.com/p/gambas/issues/detail?id=30 Things that make the code NOT crash include: 1) Commenting out "Draw.Image(workspace, 0, 0)". 2) Commenting out

[Gambas-user] Issue 30 in gambas: someimage.Draw in imlib component raises signal 11 upon second execution

2011-02-11 Thread gambas
Status: New Owner: Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 30 by kevinfis...@eightvirtues.com: someimage.Draw in imlib component raises signal 11 upon second execution http://code.google.com/p/gambas/issues/detail?id=30 The capit

[Gambas-user] Issue 29 in gambas: Draw then DrawAlpha with imlib component produces error

2011-02-11 Thread gambas
Status: New Owner: Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 29 by kevinfis...@eightvirtues.com: Draw then DrawAlpha with imlib component produces error http://code.google.com/p/gambas/issues/detail?id=29 This code (project attache

Re: [Gambas-user] Arrays of controls..

2011-02-11 Thread EA7DFH
El 11/02/11 21:18, Stephen Bungay escribió: > ' This one does not trap > PRIVATE SUB ToggleButtons_click() >STOP > END > > the click > event "ToggleButtons_click" fires (this does NOT happen). Well, I think you *must* declare as PUBLIC this method to work. PUBLIC SUB ToggleButtons_click

Re: [Gambas-user] Arrays of controls..

2011-02-11 Thread Stephen Bungay
Hi Matti! Thanks for the reply. OK, that also works when everything is all on in the one form class. Let me clarify. We have two forms, FMain and FormButtons. FMain has on it a TabStrip container (TabStrip1) and nothing else. FormButtons has on it one (1) Toggle Button called Togg

Re: [Gambas-user] Arrays of controls..

2011-02-11 Thread Matti
First, put the buttons in a group that can catch events: ButtonArray[X] = NEW Button(ME) as "Buttons" Then, give every button an individual Tag: .height = 20 .Tag = X And the event to see which one is clicked: Public Sub Buttons_Click() ' reacts to all the buttons Di

[Gambas-user] Arrays of controls..

2011-02-11 Thread Stephen Bungay
Given the following code (Gambas 2.22) PUBLIC SUB Form_Open() DIM X AS Integer DIM ButtonArray[10] AS Object FOR X = 0 TO 9 ButtonArray[X] = NEW Button(ME) WITH ButtonArray[X] .X = 90 + (20 * x) .Y = 100 .Width = 20 .height