mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 05:56:05 +02:00
LCL: TButtonPanel: hide buttons at designtime
git-svn-id: trunk@30940 -
This commit is contained in:
parent
b68fd5c06b
commit
22e9d7e9cd
@ -190,14 +190,14 @@ begin
|
||||
|
||||
if btn in FShowButtons
|
||||
then begin
|
||||
aButton.Visible := True;
|
||||
if csDesigning in ComponentState then
|
||||
aButton.ControlStyle:=aButton.ControlStyle-[csNoDesignVisible];
|
||||
aButton.Visible := True;
|
||||
end
|
||||
else begin
|
||||
aButton.Visible := False;
|
||||
if csDesigning in ComponentState then
|
||||
aButton.ControlStyle:=aButton.ControlStyle+[csNoDesignVisible];
|
||||
aButton.Visible := False;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user