[lazarus] How to scroll TMemo control in code

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Mar 28 03:31:10 EST 2003


On Fri, 28 Mar 2003 01:03:12 +0100
Marc Weustink <marc at dommelstein.net> wrote:

> >Right.
> >I think, we should add some properties to TCustomMemo to control the
> >scrollbars.
> >Other components need them too, so we should do that in an independent
> >way. Ideas?
> 
> First idea:
> 
> Add H and V scrollbars like TScrollingWinControl, however created
> according to TScrollStyle and with limited properties (Not nesecary
> derived from TScrollbar).

Good idea.

TScrollingWincontrol has
    property HorzScrollBar: TControlScrollBar;
    property VertScrollBar: TControlScrollBar;

Currently TControlScrollbar only supports TScrollingWincontrol. We can
improve it to handle TWinControls in general.


Mattias






More information about the Lazarus mailing list