mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 12:30:59 +02:00
Patch from Salvatore Coppola. TTrayIcon does not active at design time.
git-svn-id: trunk@16983 -
This commit is contained in:
parent
416ced6947
commit
d0d5cd769a
@ -91,7 +91,10 @@ begin
|
||||
|
||||
FVisible := False;
|
||||
|
||||
Result := TWSCustomTrayIconClass(WidgetSetClass).Hide(Self);
|
||||
if not(csDesigning in ComponentState) then
|
||||
Result := TWSCustomTrayIconClass(WidgetSetClass).Hide(Self)
|
||||
else
|
||||
Result := false;
|
||||
end;
|
||||
|
||||
{*******************************************************************
|
||||
@ -110,7 +113,10 @@ begin
|
||||
|
||||
FVisible := True;
|
||||
|
||||
Result := TWSCustomTrayIconClass(WidgetSetClass).Show(Self);
|
||||
if not(csDesigning in ComponentState) then
|
||||
Result := TWSCustomTrayIconClass(WidgetSetClass).Show(Self)
|
||||
else
|
||||
Result := false;
|
||||
end;
|
||||
|
||||
{*******************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user