[Gambas-user] Timer Tag property
Dimitri Bellini
dimitribellini at ...69...
Fri Apr 9 08:06:09 CEST 2004
Dear Benoit
i know the timer is not a "control" but i need to know what timer have
generate the event because i will try to create a internet cafee app so for
every PC a need to start a timer but i want made it with more simple way like
create n box when i have n pc box. I decide to create the n box in runtime in
this mode i dont create a new form every time i need to add another pc box.
I have try to use Last in the event but i last return an object like "Timer
0x332324" how can i understand what Timer have start the event?
My Timer is define as wrote below.
My english is very bad i hope, i apology if you cant understand what i write..
:-)
Thanks in advance
Dimitri
On Thursday 08 April 2004 21:16, Benoit Minisini wrote:
> On Thursday 08 April 2004 07:00, Dimitri Bellini wrote:
> > Dear Benoit
> > i have try to use the creation of control Timer at runtime like this:
> > ----
> > private tmr[4] as Timer
> > ---
> > tmr[i]=NEW Timer(ME) AS "tmrCab"
> > tmr[i].enabled=FALSE
> > tmr[i].tag=i
> > ---
> >
> > But in the first seems that the editor think the "Timer" is Time = Timer
> > ( ) e not the control and another the property Tag not seems to exist in
> > this control. Can you give me some work around to have the Tag property
> > working like button or textbox control?
> > Thanks in advance
> > Dimitri
>
> Timer has no Tag property. Timer is NOT a control.
> Why do you want to associate an index with the timer ? If you want to
> distinguish which timer is called in the Timer event, then use LAST.
>
> Regards,
More information about the User
mailing list