mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 07:38:14 +02: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);
|
||||
end;
|
||||
|
||||
procedure TCustomScrollBar.SetParams(APosition, AMin, AMax: Integer);
|
||||
begin
|
||||
SetParams(APosition, AMin, AMax, FPageSize);
|
||||
end;
|
||||
|
||||
procedure TCustomScrollBar.SetPosition(Value: Integer);
|
||||
begin
|
||||
SetParams(Value, FMin, FMax, FPageSize);
|
||||
|
@ -60,6 +60,8 @@ type
|
||||
TScrollEvent = procedure(Sender: TObject; ScrollCode: TScrollCode;
|
||||
var ScrollPos: Integer) of object;
|
||||
|
||||
{ TCustomScrollBar }
|
||||
|
||||
TCustomScrollBar = class(TWinControl)
|
||||
private
|
||||
FKind: TScrollBarKind;
|
||||
@ -91,6 +93,7 @@ type
|
||||
public
|
||||
constructor Create(AOwner: TComponent); override;
|
||||
procedure SetParams(APosition, AMin, AMax, APageSize: Integer);
|
||||
procedure SetParams(APosition, AMin, AMax: Integer);
|
||||
public
|
||||
property Kind: TScrollBarKind read FKind write SetKind default sbHorizontal;
|
||||
property LargeChange: TScrollBarInc read FLargeChange write FLargeChange default 1;
|
||||
|
Loading…
Reference in New Issue
Block a user