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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting data from amouseobj()

Status
Not open for further replies.

ajpa

Programmer
Jan 31, 2002
52
GB
Does anyone know how to get at the contents of the array created by amouseobj()? Column 1 is supposed to tell you what object the mouse is hovering over. Not knowing quite what to expect, I called amouseobj() and then tried

wait window my_array(1)

and

wait window str(my_array(1))

neither of which worked.

What I want to do ultimately is determine in the LostFocus event of a text box whether or not the mouse has just clicked on Command1.

(A keyword search on amouseobj() produced no results at all, so it looks as if it's never been discussed in this forum)

Tony Ayres
 
Tony,

There's a SYS function which gives you an object reference to the object under the mouse pointer. Can't off-hand remember the SYS number. It should be easier to work with than amouseobj().

But I wonder if that is really what you want to do. Both functions only work if the user uses the mouse to click the button. What if they tab to the button with the keyboard?

I think you might need to look for another strategy.

Mike


Mike Lewis
Edinburgh, Scotland
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top