Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddObject design and runtime
Message
De
07/07/2008 08:33:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Divers
Thread ID:
01329366
Message ID:
01329370
Vues:
13
>>Hi,
>>I there way to know if container add to the form in design time or runtime
>>
>>For example.. I need to have in the Container.Init()
>>IF expression.. if container was add to the form using AddObject.. I must add bindevents code.. if container was add to the form in design time - then ignore bindevents .
>>
>>Any idea,
>>Thanks
>>Denis
>
>Just add one more property in that class. Make it to be .T. as default. Then in Init:
>
>IF this.BindEventsProp
>   *** BINDEVENTS()
>ENDIF
>
>
>Then if you add that container in design mode just change this property to .f.

Hi Borislav,
It seems no solution. The problem is, its bad subclassed in existing application.. too much subclasses everywhere. and also.. too much calls with addObject so big chance to forget somewhere to fix it. Looking for way to change only baseclass.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform