Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can do BINDEVENT(thisform,'ActiveControl')
Message
 
 
To
08/05/2003 10:26:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00786233
Message ID:
00786249
Views:
23
AFAIK, you have to bind to the event of a specific control. In all the INIT methods of your baseclass controls, you could put the following:

BINDEVENT(THIS, "LostFocus", ThisForm, "FocusChange")

Update:

or in your form baseclass Init, you could loop through the OBJECTS collection:
for each loControl in this.controls
   if pemstatus(loControl, 'LOSTFOCUS', 5)
      BINDEVENT(loControl, "LostFocus", ThisForm, "FocusChange")
   endif
endfor
>Hi
>
>I need fire one methods before/after ActiveControl change value.
>
>I write on form.Init()
> BINDEVENT(thisform,"ActiveControl",thisform,"FocusChange")
>
>and add this methods:
>
>PROCEDURE FocusChange
> lparameters ofocus
> messagebox(ofocus.Name+" change focus")
>RETURN
>
>but it does not happen null.
>
>I mistaken?
>Is another bug ?
>
>If someone me helps thanks to it.
>
>Fabio
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform