Custom control vertical adjust beyond rvvaBaseline etc
Posted: Wed Jan 04, 2006 6:39 am
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
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