Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BINDEVENT() with _SCREEN.CLICK
Message
De
16/09/2009 16:08:50
 
 
À
16/09/2009 15:43:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01424780
Message ID:
01424798
Vues:
59
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
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform