mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-28 14:37:18 +01:00
lcl: added overload for TCustomScrollbar.SetParams (issue #7657) from Tom Gregorovic
git-svn-id: trunk@10108 -
This commit is contained in:
parent
497bf7b015
commit
cb63d019b3
@ -141,6 +141,11 @@ begin
|
|||||||
TWSScrollBarClass(WidgetSetClass).SetParams(Self);
|
TWSScrollBarClass(WidgetSetClass).SetParams(Self);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TCustomScrollBar.SetParams(APosition, AMin, AMax: Integer);
|
||||||
|
begin
|
||||||
|
SetParams(APosition, AMin, AMax, FPageSize);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TCustomScrollBar.SetPosition(Value: Integer);
|
procedure TCustomScrollBar.SetPosition(Value: Integer);
|
||||||
begin
|
begin
|
||||||
SetParams(Value, FMin, FMax, FPageSize);
|
SetParams(Value, FMin, FMax, FPageSize);
|
||||||
|
|||||||
@ -60,6 +60,8 @@ type
|
|||||||
TScrollEvent = procedure(Sender: TObject; ScrollCode: TScrollCode;
|
TScrollEvent = procedure(Sender: TObject; ScrollCode: TScrollCode;
|
||||||
var ScrollPos: Integer) of object;
|
var ScrollPos: Integer) of object;
|
||||||
|
|
||||||
|
{ TCustomScrollBar }
|
||||||
|
|
||||||
TCustomScrollBar = class(TWinControl)
|
TCustomScrollBar = class(TWinControl)
|
||||||
private
|
private
|
||||||
FKind: TScrollBarKind;
|
FKind: TScrollBarKind;
|
||||||
@ -91,6 +93,7 @@ type
|
|||||||
public
|
public
|
||||||
constructor Create(AOwner: TComponent); override;
|
constructor Create(AOwner: TComponent); override;
|
||||||
procedure SetParams(APosition, AMin, AMax, APageSize: Integer);
|
procedure SetParams(APosition, AMin, AMax, APageSize: Integer);
|
||||||
|
procedure SetParams(APosition, AMin, AMax: Integer);
|
||||||
public
|
public
|
||||||
property Kind: TScrollBarKind read FKind write SetKind default sbHorizontal;
|
property Kind: TScrollBarKind read FKind write SetKind default sbHorizontal;
|
||||||
property LargeChange: TScrollBarInc read FLargeChange write FLargeChange default 1;
|
property LargeChange: TScrollBarInc read FLargeChange write FLargeChange default 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user