Re: [Gambas-user] Arrays of controls

2011-09-23 Thread Dag-Jarle Johansen
Ok, that makes it understandable and has sense. Sorry for that, loose nerves sometimes. I will send you the packages from yesterday, nothing has changed since then. Regards, Dag-Jarle 2011/9/23 Benoît Minisini > > Hi Benoit, > > > > first, I was not very amused about beeing rejected with my p

Re: [Gambas-user] Arrays of controls

2011-09-23 Thread Benoît Minisini
> Hi Benoit, > > first, I was not very amused about beeing rejected with my project > allthough you had asked for it, I don't know why it prints "no reason". This is an automatic mailing-list rule that rejects all mails greater than 256K. There is a limit because there is 800 people on the mai

Re: [Gambas-user] Arrays of controls

2011-09-23 Thread Dag-Jarle Johansen
Hi Benoit, first, I was not very amused about beeing rejected with my project allthough you had asked for it, But forgotten, Today I have installed Ubuntu 10.04 from the scratch, even so XAMPP and Gambas 3 SVN, ver 4144. I am sorry to say, I still get a signal 11 when trying to accessing a form. A

Re: [Gambas-user] Arrays of controls

2011-08-28 Thread Dag-Jarle Johansen
hi Benoit, thank you. Now I have two solutions possible :-) By the way, congratulations to the development of Gambas, it is real grown up now. The speed of development makes it a little difficult to follow up, as I have some breaks doing other projects. (Often forgetting what I already knew, gett

Re: [Gambas-user] Arrays of controls

2011-08-28 Thread Dag-Jarle Johansen
thanks a lot, tobias, danke sehr, genau was ich brauche - just what I was looking for and searched a lot for. and an extra thanks for the very detailled description; mostly there is one little point, clear to anyone who uses this every day, and therefor not mentioned, but an obstacle to the newbie.

Re: [Gambas-user] Arrays of controls

2011-08-28 Thread Benoît Minisini
> Hi out there, > > I do not check this at all: > > Public Sub Page_First_Init() > Dim hPictureBox As PictureBox > Dim I As Integer > For i = 0 To 9 > hPictureBox = New PictureBox(Me) As "PBX" > hPictureBox.Tag = i > Next > End > > Seems to work. But how do I call

Re: [Gambas-user] Arrays of controls

2011-08-28 Thread tobias
hi, > I do not check this at all: > > Public Sub Page_First_Init() > Dim hPictureBox As PictureBox > Dim I As Integer > For i = 0 To 9 > hPictureBox = New PictureBox(Me) As "PBX" > hPictureBox.Tag = i > Next > End ok, you have a loop from 0 to 9 in which you

[Gambas-user] Arrays of controls

2011-08-27 Thread Dag-Jarle Johansen
Hi out there, I do not check this at all: Public Sub Page_First_Init() Dim hPictureBox As PictureBox Dim I As Integer For i = 0 To 9 hPictureBox = New PictureBox(Me) As "PBX" hPictureBox.Tag = i Next End Seems to work. But how do I call one of this bitmaps, for ex

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] 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