I am trying to determine where the a right click occurs in an edit table. I know the right position in pixcels from the top left of the edit table. I also know (via COLWIDTH) the width of each column in the edit table. OK so far…. The problem is how deep is a row in the edit table. (I will assume for the time being that the lable bar in the top is the same size.) There seems not to be a ROWDEPTH message or any thing else that gives be the depth.
Any Ideas …
Thanks
Kevin,
This post should get you started.
Don - Thanks for the pointer but I still don't quite get it. I know the cursors pos relative to the edittable control and I see that STYLE can tell me things like - is the label header shown or are number buttons on the side shown - hence the need for offsets of some amount. What I still cannot seem to get is the vertical distance between grid lines. In my test case it seems the lable header is 18 deep and the grid lines are 14 deep. This of cause only holds for the current font. What I am trying to find is a function that will return the depth for the current font.
Thanks
In addition to knowing the relevant STYLE properties of the edittable you will need to use the Windows API functions GetCursorPos and ScreenToClient.
Don - Thanks for the pointer but I still don't quite get it. I know the cursors pos relative to the edittable control and I see that STYLE can tell me things like - is the label header shown or are number buttons on the side shown - hence the need for offsets of some amount. What I still cannot seem to get is the vertical distance between grid lines. In my test case it seems the lable header is 18 deep and the grid lines are 14 deep. This of cause only holds for the current font. What I am trying to find is a function that will return the depth for the current font.
Thanks