You've already forked lazarus-ccr
mbColorLib: Use single registration file (instead of one for each component). Facilitate usage of Layout for trackbars. Reformat code.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5462 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -39,22 +39,11 @@ type
|
||||
property Layout default lyVertical;
|
||||
end;
|
||||
|
||||
procedure Register;
|
||||
|
||||
implementation
|
||||
|
||||
{$IFDEF FPC}
|
||||
{$R GColorPicker.dcr}
|
||||
{$ENDIF}
|
||||
|
||||
uses
|
||||
mbUtils;
|
||||
|
||||
procedure Register;
|
||||
begin
|
||||
RegisterComponents('mbColor Lib', [TGColorPicker]);
|
||||
end;
|
||||
|
||||
{TGColorPicker}
|
||||
|
||||
constructor TGColorPicker.Create(AOwner: TComponent);
|
||||
@@ -62,15 +51,12 @@ begin
|
||||
inherited;
|
||||
FGradientWidth := 256;
|
||||
FGradientHeight := 12;
|
||||
SetInitialBounds(0, 0, 22, 268);
|
||||
//Width := 22;
|
||||
//Height := 268;
|
||||
Layout := lyVertical;
|
||||
FRed := 122;
|
||||
FGreen := 255;
|
||||
FBlue := 122;
|
||||
FArrowPos := ArrowPosFromGreen(255);
|
||||
FChange := false;
|
||||
Layout := lyVertical;
|
||||
SetGreen(255);
|
||||
HintFormat := 'Green: %value';
|
||||
FManual := false;
|
||||
|
Reference in New Issue
Block a user