lcl: added overload for TCustomScrollbar.SetParams (issue #7657) from Tom Gregorovic

git-svn-id: trunk@10108 -
This commit is contained in:
vincents 2006-10-25 21:11:19 +00:00
parent 497bf7b015
commit cb63d019b3
2 changed files with 8 additions and 0 deletions

View File

@ -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);

View File

@ -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;