CnPack Forum

#1 CnTrayIcon.pas的ShowApplication恢复仍然有问题
新建一工程,加入CnTrayIcon控件, AutoHide=True; UseAppIcon=True,其余默认,为双击添加如下事件:

[code]procedure TForm1.CnTrayIconDblClick(Sender: TObject);
begin
if Application.MainForm.WindowState = wsMinimized then
CnTrayIcon.ShowApplication
else
CnTrayIcon.HideApplication;
end;[/code]

在Windows XP/7/2008下面都无法正常还原窗口,表现为最小化的任务栏图标,需要鼠标再次点击才能恢复.

CnPack是否可以考虑在CnTray ..

#1 >>Next Page

Forum:CnVCL 组件包
Thread:CnTrayIcon.pas的Show ...
Next Thread:CnHexEditor控件的问 ...

Home
Login

Powered by Discuz!