Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 07 JUN 2000 03:17:03AM Kevin Bolitho wrote:

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


At 07 JUN 2000 08:27AM Don Bakke wrote:

Kevin,

This post should get you started.

dbakke@srpcs.com

SRP Computer Solutions


At 07 JUN 2000 03:19PM Kevin Bolitho wrote:

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.


At 07 JUN 2000 03:19PM Kevin Bolitho wrote:

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

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/c58009b56fa65226852568f70028035d.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1