Patch from Salvatore Coppola. TTrayIcon does not active at design time.

git-svn-id: trunk@16983 -
This commit is contained in:
sekelsenmat 2008-10-13 11:46:11 +00:00
parent 416ced6947
commit d0d5cd769a

View File

@ -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;
{*******************************************************************