Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BINDEVENT() with _SCREEN.CLICK
Message
From
16/09/2009 16:08:50
 
 
To
16/09/2009 15:43:01
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01424780
Message ID:
01424798
Views:
58
That works well - I misread the BINDEVENT description.

Thanks Stefan and Naomi!!!

Howard

>>When I click on a screen region owned by _SCREEN, my app's form is deactivated.
>>This behavior appears to be different with VFP9 than with VFP5.
>>
>>I tried using BINDEVENT to capture the mouse click and activate my form:
>>BINDEVENT(_SCREEN,"Click",THISFORM,"Click")
>>
>
>form.Click() is an event - perhaps the form.Show() method might work better? I believe the following sample.PRG might do what you want.
>
>
>hth
>-Stefan
>
>
>
>PUBLIC oForm as Form
>oForm = CREATEOBJECT('TestForm')
>oForm.Show()
>RETURN
>
>DEFINE CLASS TestForm as Form
>	AutoCenter = .T.
>	PROCEDURE Init
>		BINDEVENT(_screen,'Click', This,'ScreenClick')
>	ENDPROC
>	PROCEDURE Destroy
>		UNBINDEVENTS(This)
>	ENDPROC
>	PROCEDURE ScreenClick
>		This.Show()
>	ENDPROC
>ENDDEFINE
>
Previous
Reply
Map
View

Click here to load this message in the networking platform