Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BINDEVENTS with _SCREEN...

Status
Not open for further replies.

Neil Toulouse

Programmer
Mar 18, 2002
882
GB
Hi!

I have been experimenting with the BINDEVENT in order to capture the CLICK and MOUSEMOVE events from _SCREEN (in VFP8).

I have done this by simply issuing the following command in the INIT of the form:

Code:
	BINDEVENT( _SCREEN, "click", THISFORM, "click" )
	BINDEVENT( _SCREEN, "mousemove", THISFORM, "mousemove" )

This works fine in my test form but when I implement it into the application, it seems to simply ignore the bindings!

So I have 2 questions:

1. Is there an easy way to check if the bindings have taken place?

2. Basically I am trying to emulate a menu with a form and the behaviour I am after is the form to close when the mouse pointer is moved past the confines of the form (ie onto _SCREEN) or when _SCREEN is clicked onto. Is there a better way of doing this?

TIA
Neil

I like work. It fascinates me. I can sit and look at it for hours...
 

Hi Neil,

To answer your first question:

Is there an easy way to check if the bindings have taken place?

Yes. Use AEVENTS().

Sorry I don't have an answer to the second question, but Dave's idea sounds promising.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Hi guys!

thanks for the responses

Code:
BINDEVENT( _VFP, "click", THISFORM, "click" )

...gives 'Property click is not found'.

The AEVENTS() does prove the bindings have occured.

There is obviously something happening in the application that I am not seeing causing the routine to fail.

Oh well, back to my search!

Neil

I like work. It fascinates me. I can sit and look at it for hours...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top