mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 18:58:04 +02:00
LCL: TScrollingWinControl.AutoScroll (bug #10774)
* moved TScrollingWinControl.AutoScroll from published to protected section * set default value to true * published AutoScroll in descendant classes git-svn-id: trunk@15375 -
This commit is contained in:
parent
ad8b434a14
commit
d99a049461
@ -153,6 +153,7 @@ type
|
||||
procedure SetVertScrollBar(Value: TControlScrollBar);
|
||||
function StoreScrollBars : Boolean;
|
||||
protected
|
||||
property AutoScroll: Boolean read FAutoScroll write SetAutoScroll default true;
|
||||
procedure AlignControls(AControl: TControl; var ARect: TRect); override;
|
||||
procedure CreateWnd; override;
|
||||
function GetClientScrollOffset: TPoint; override;
|
||||
@ -172,7 +173,6 @@ type
|
||||
procedure UpdateScrollbars;
|
||||
function HasVisibleScrollbars: boolean; virtual;
|
||||
published
|
||||
property AutoScroll: Boolean read FAutoScroll write SetAutoScroll;
|
||||
property HorzScrollBar: TControlScrollBar
|
||||
read FHorzScrollBar write SetHorzScrollBar stored StoreScrollBars;
|
||||
property VertScrollBar: TControlScrollBar
|
||||
@ -189,7 +189,7 @@ type
|
||||
property Align;
|
||||
property Anchors;
|
||||
property AutoSize;
|
||||
//property AutoScroll;
|
||||
property AutoScroll;
|
||||
property BorderSpacing;
|
||||
property BiDiMode;
|
||||
property BorderStyle;
|
||||
@ -608,6 +608,7 @@ type
|
||||
property ActiveControl;
|
||||
property Align;
|
||||
property AllowDropFiles;
|
||||
property AutoScroll;
|
||||
property AutoSize;
|
||||
property BiDiMode;
|
||||
property BorderIcons;
|
||||
|
@ -233,6 +233,7 @@ constructor TScrollingWinControl.Create(TheOwner : TComponent);
|
||||
begin
|
||||
Inherited Create(TheOwner);
|
||||
|
||||
FAutoScroll := true;
|
||||
FVertScrollbar := TControlScrollBar.Create(Self, sbVertical);
|
||||
FHorzScrollbar := TControlScrollBar.Create(Self, sbHorizontal);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user