mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 11:29:19 +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
|
if btn in FShowButtons
|
||||||
then begin
|
then begin
|
||||||
aButton.Visible := True;
|
|
||||||
if csDesigning in ComponentState then
|
if csDesigning in ComponentState then
|
||||||
aButton.ControlStyle:=aButton.ControlStyle-[csNoDesignVisible];
|
aButton.ControlStyle:=aButton.ControlStyle-[csNoDesignVisible];
|
||||||
|
aButton.Visible := True;
|
||||||
end
|
end
|
||||||
else begin
|
else begin
|
||||||
aButton.Visible := False;
|
|
||||||
if csDesigning in ComponentState then
|
if csDesigning in ComponentState then
|
||||||
aButton.ControlStyle:=aButton.ControlStyle+[csNoDesignVisible];
|
aButton.ControlStyle:=aButton.ControlStyle+[csNoDesignVisible];
|
||||||
|
aButton.Visible := False;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user