Page 1 of 1

Custom control vertical adjust beyond rvvaBaseline etc

Posted: Wed Jan 04, 2006 6:39 am
by lwinter
Sorry for bothering you during holidays,

We are using delphi custom controls and need to make further adjustment to the vertical position relative to the surrounding text.

The AddControlEx method's parameter option rvvaBaseline is too high and rvvaMiddle is too low (we are using a TGraphicControl with text on it).

Which would be the best way (e.g. override one of TRichView's methods) to achieve this?

We are subclassing TCustomRichView where we tried to change a custom control's vertical position (e.g. TControl.Top), but these changes are overwritten by TRichView's own positioning mechanism.

Thank you for your help,
and a happy new year,

-- Lutz

Posted: Wed Jan 04, 2006 8:34 am
by Sergey Tkachenko
In the newest version of TRichView (available for registered users) new types of vertical alignment are implemented: abstop, absbottom and absmiddle (top/bottom/middle of the control is aligned to top/bottom/middle of its line)