E-BIND

Bind VFP Code To Window Message Notifications

Vortragssprache:Englisch
Vortragstyp: Normal Slot: Day1/Room1/Slot1
Speaker:Drew Speedie
The BINDEVENT() function was introduced in VFP 8 for binding VFP properties, events, and methods to delegate code. That feature supports better encapsulation, looser coupling, and simpler maintenance, especially when designing composite classes. In VFP 9, the BINDEVENT() function has been expanded to support binding to Window Message notifications from the Windows operating system. Now you can bind VFP code to events that Windows sends to VFP objects that have a window handle (hWnd), like _VFP, _Screen, and the base class Form. This session explains this new functionality, and features several examples including an abstract event-handler class and concrete subclasses. The demonstrations show how you can hook your VFP code to Windows system events like when the user changes the Theme, the desktop resolution, leaves/returns to your VFP application, unplugs their laptop, and so on.Attendees should have experience creating VFP forms and controls; a basic understanding of the VFP 8–style BINDEVENT() is helpful.