Edit Table Click Event (OpenInsight Specific)
At 20 MAY 1998 11:53:22AM Hank Huizinga wrote:
Does anybdoy have any ideas on how to capture the x,y position of the cursor during a left mouse button click in an edit table.
Help is appreciated,
Hank Huizinga
Megamation Systems Inc.
At 20 MAY 1998 12:56PM Jeff Blinn wrote:
Does anybdoy have any ideas on how to capture the x,y position of the cursor during a left mouse button click in an edit table.
We were trying to do this last week, and finally went to another method. You can determine the cell that was clicked with the left mouse - but we couldn't find the x,y. I tried finding the x,y of a right mouse click, and came very close, but the numbers necessary to relate the x,y to screen coordinates did not quite add up. By using the QUALIFY_EVENT property and the WINMSG event you can capture a right mouse click, but I couldn't do the same thing with LBUTTONDOWN or any of the left mouse funtions - I think they are being intercepted by another process.
This probably isn't much help - but if you figure it out I'd be curious how you did it.
At 21 MAY 1998 01:00AM Don Bakke wrote:
Does anybdoy have any ideas on how to capture the x,y position of the cursor during a left mouse button click in an edit table.
We developed a subroutine that will tell you the correct x,y position of an edittable. Assuming you need the x,y position from within the actual grid (that is, ignoring the column headers and the row buttons) you have to offset the this position appropriately depending how the edittable is styled. We developed our subroutine so we could accurately predict the exact cell a right mouse click occured in so we not only return the x,y position but we also return the relative cell position as well. This works great for zooming in on a cell.
In addition to knowing the relevant STYLE properties of the edittable you will need to use the Windows API functions GetCursorPos and ScreenToClient.
dbakke@srpcs.com
At 22 MAY 1998 10:11PM Bob Watson wrote:
Don
Could I buy that from you? (I'm serious)
Bob Watson
RWatson2@compuserve.com