Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HWND Property
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00790675
Message ID:
00790741
Views:
15
>>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
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform