[Gambas-user] Timer Tag property

Dimitri Bellini dimitribellini at ...69...
Thu Apr 8 08:02:45 CEST 2004


Dear Ron
	thanks for your tips!! :-) But why is correct to not have .tag in timer? I 
used Index in timer control on VB6. I think is more simple to create a form 
with a 6 timer and every timer have a different setting and start time.
With the example i put below, when i start one of this works great but when i 
start another the Event tmrCab_Timer() (the group name of Timer component) 
add another call to this event... and so on ..
Thanks for help..
Dimitri

On Thursday 08 April 2004 12:14, ron 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
>
> It is correct the Timer object has no Tag.
> However it is also invisible
> As Tag substitute the X and Y position can be used.
> Lucky guy, you have two pseudo .Tag properties now. :D
>
> Ron
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list