Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding timer to a command button group
Message
From
19/02/1999 13:05:30
Donny Sims
Independent Computer Consultants Inc
Scottsboro, Alabama, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00189316
Message ID:
00189371
Views:
8
Hi George

A couple of follow up question if you don't mind .

>>Hi all
>>
>>Can someone tell how (or if its possible) to add a timer to a command button group ? Their does'nt seem to be a way to do it visually. I thought of doing an addobject() in the init of the group but then how do I define the timer event ?
>
>Hi Donny,
>
>There's nothing keeping you from subclassing the timer visually

I must be doing something wrong then, every time I visually drop a timer on the command button group it actually goes onto the underlying form instead. From this I assumed that even though the command button group was called a container object it could only contain command buttons (as the name implies). Can the timer be added to the command button group using the class designer instead of the form designer ?
>DEFINE CLASS MyTimer AS TIMER
>  * Set the interval at one minute in this example
>  Interval = 60000
>
>  PROCEDURE Timer
>    * What ever code you want here.
>  ENDPROC
>ENDDEFINE
>The you can issue a SET PROCEDURE TO < procname > and then CREATEOBJECT('MyTimer'), for example.
>
>hth,

Did you mean to put the class and procedure definitions in a prg (such as my main prg) or can this code be added to the command button group some way ?

TIA
Donny Sims

Life is what happens to us while were busy making other plans.
- John Lennon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform