LCL: better solution for TToggleBox color, ParentColor is by default false and not published so it behaves same as TButton. issue #22887

git-svn-id: trunk@38698 -
This commit is contained in:
zeljko 2012-09-16 19:32:56 +00:00
parent 86d412a962
commit a6468d6f2e
2 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ begin
inherited Create(TheOwner);
fCompStyle := csToggleBox;
TabStop := True;
ParentColor := False;
end;
{------------------------------------------------------------------------------}

View File

@ -1291,6 +1291,7 @@ type
protected
class procedure WSRegisterClass; override;
procedure CreateParams(var Params: TCreateParams); override;
property ParentColor default false;
public
constructor Create(TheOwner: TComponent); override;
published
@ -1323,7 +1324,6 @@ type
property OnMouseUp;
property OnStartDrag;
property ParentBidiMode;
property ParentColor;
property ParentFont;
property ParentShowHint;
property PopupMenu;