Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HWND Property
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00790675
Message ID:
00790745
Vues:
16
>>>I never intended to use any design time value because I do understand the handle is assigned at run time and can be any value. With the new collection class, the HWND assigned at runtime makes an excellent key when each [DO]form is added to the collection. Adding forms, removing forms, handling multiple instances of the same form is now easier with this class.
>>
>>Too bad you can't add an _assign event to the property JIC. That way, even if it did change at runtime, you could make the necessary adjustments.
>
>You know, you can BINDEVENT to a property. Hehe. Try this:
>oDelegate = CREATEOBJECT('PropTest')
>oForm = CREATEOBJECT('form')
>BINDEVENT(oForm, "TAG", oDelegate, "TagChanged")
>oForm.Tag = 'test'
>
>DEFINE CLASS PropTest AS Custom
>   PROCEDURE TagChanged
>      WAIT WINDOW NOWAIT "Tag Bind Fired"
>   ENDPROC
>ENDDEFINE
You read my mind. I was thinking the same thing.< bg >
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