Coordinate of Controls whicht are inside table cells
Posted: Mon Oct 08, 2012 1:32 pm
Hello,
we have problem to determine the y coord of controls which are inside a table cell, which are longer than the screen height of the Richview.
We are using
TRichView(c.Parent).GetItemCoords(TRichView(c.Parent).FindControlItemNo(c), x, y);
y has the correct value if the height of the table cell isn't higher than the height of the Richview component. Otherwise I get a wrong value.
Any ideas?
What I want to do is, that the Richview scroll to the control if the control get the focus. Can I do this with another method like for example Richview.ControlInView(c) or something else?
Best wishes
Bernhard
we have problem to determine the y coord of controls which are inside a table cell, which are longer than the screen height of the Richview.
We are using
TRichView(c.Parent).GetItemCoords(TRichView(c.Parent).FindControlItemNo(c), x, y);
y has the correct value if the height of the table cell isn't higher than the height of the Richview component. Otherwise I get a wrong value.
Any ideas?
What I want to do is, that the Richview scroll to the control if the control get the focus. Can I do this with another method like for example Richview.ControlInView(c) or something else?
Best wishes
Bernhard