Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change topform timer interval
Message
De
24/12/2009 10:14:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
24/12/2009 08:43:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01440498
Message ID:
01440533
Vues:
47
>I have only one top form.
>the timer is on the top form.
>I create oapp object on my start app with property, then I add timer on the top form that check the property and I can change the property any child form.

Well, then, I don't see any problem. Add the property to oApp (I'll call it oTopoForm), then assign the main form to this property. This can be done within the form itself: oApp.oTopForm = ThisForm. I suppose this can also be done from outside, the moment you instantiate the form, although I didn't try this with properties: do form TopForm name oApp.oTopForm.

After that, you can access the top form through the application object, for example: oApp.oTopForm.MyTimer.Interval = ...
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform