Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding timer to a command button group
Message
 
À
19/02/1999 13:05:30
Donny Sims
Independent Computer Consultants Inc
Scottsboro, Alabama, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00189316
Message ID:
00189393
Vues:
9
>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 ?

No, you'll get an invalid object for this container message.

>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 ?
>
You can programmatically define the timer as I indicated. However, in order to add it to the command group in the class designer, you'll have to add a object property reference to hold it. You can't use .AddObject().

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform