Custom control vertical adjust beyond rvvaBaseline etc

General TRichView support forum. Please post your questions here
Post Reply
lwinter
Posts: 24
Joined: Thu Dec 01, 2005 4:42 am

Custom control vertical adjust beyond rvvaBaseline etc

Post 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
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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)
Post Reply