Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect that control is added in run-time
Message
 
 
À
19/09/2000 11:58:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00418065
Message ID:
00418104
Vues:
21
Thanks! I just figured this out.

>>Is there way to detect in control's Init method code that control added in run-time? For example:
>>
>> procedure Init
>> lAddedInRuntype = ????
>> if lAddedInRuntype
>> ... special actions
>> endif
>> endproc
>
>One idea...
>At the end of your base form's Init() set a custom property lInitFinished = .T.
>Default this property to .F.
>In each control's base class (i.e., your base classes) check for form.lInitFinished = .T. - if it is, it was added at run time.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform