i was wondering if it was possible;
when user minimize the window it will send it to taskbar
and
if user close the window it will send it to system tray ??
like in the pictures
Professional Software Development Tools
i was wondering if it was possible;
when user minimize the window it will send it to taskbar
and
if user close the window it will send it to system tray ??
like in the pictures
it is not possible...
not for sure but maybe possible with winapi plugin of Reteset...
is there any dll or something else for that ?
Systray Action Plugin
Unfortunate that dnet-software.com is offline, so downloading won't be happening lol.
thanks Imagine Programming
but there is problem with this plugin i think !!!
because if i click the main window after replacing icon to system tray then it brings the start bar icon back and also keeps system tray icon there...
Try this in combination with the SysTray action plugin
Change icon path.Code:function Window._Minimize(hWnd) tbTrayIcon = SysTray.AddIcon("AutoPlay\\Icons\\icon.ico", "Tooltip", "SysTrayCallBack", "MenuCallBack"); if tbTrayIcon.Success then Window.Hide(hWnd) end end function Window._Restore(hWnd) SysTray.RemoveIcon(); Window.Show(hWnd); end
Now, when you call Window._Minimize(hWnd) it hides it from taskbar and shows it in systray, and when you double click the systray it reverses this.
Example for the SysTrayCallBack and MenuCallBack functions
and ofcourse the Menu CreationCode:function SysTrayCallBack(numberID, stringButton) if stringButton == "LeftClick" then -------- elseif stringButton == "LeftDoubleClick" then Window._Restore(Application.GetWndHandle()); elseif stringButton == "RightClick" then SysTray.ShowMenu(100); elseif stringButton == "RightDoubleClick" then ------ end end function MenuCallBack(ItemID) if(ItemID==102)then Window._Restore(Application.GetWndHandle()) elseif(ItemID==103)then Application.Exit(0); end end
Again, Change icon paths.Code:RightClickMenu=SysTray.CreateImageMenu(100, false); if RightClickMenu.Success then SysTray.MenuItem(102, "&Restore","AutoPlay\\Icons\\restore.ico"); SysTray.MenuBar(); SysTray.MenuItem(103, "&Exit","AutoPlay\\Icons\\close.ico"); end
thanks Imagine Programming
but another question;
where would the codes be ? button click or page on show ?
Global Functions
On ShowCode:function Window._Minimize(hWnd) tbTrayIcon = SysTray.AddIcon("AutoPlay\\Icons\\icon.ico", "Tooltip", "SysTrayCallBack", "MenuCallBack"); if tbTrayIcon.Success then Window.Hide(hWnd) end end function Window._Restore(hWnd) SysTray.RemoveIcon(); Window.Show(hWnd); end function SysTrayCallBack(numberID, stringButton) if stringButton == "LeftClick" then -------- elseif stringButton == "LeftDoubleClick" then Window._Restore(Application.GetWndHandle()); elseif stringButton == "RightClick" then SysTray.ShowMenu(100); elseif stringButton == "RightDoubleClick" then ------ end end function MenuCallBack(ItemID) if(ItemID==102)then Window._Restore(Application.GetWndHandle()) elseif(ItemID==103)then Application.Exit(0); end end
Code:RightClickMenu=SysTray.CreateImageMenu(100, false); if RightClickMenu.Success then SysTray.MenuItem(102, "&Restore","AutoPlay\\Icons\\restore.ico"); SysTray.MenuBar(); SysTray.MenuItem(103, "&Exit","AutoPlay\\Icons\\close.ico"); end
this doesnt remove start bar icon, it doesnt hide it !!!Code:function Window._Minimize(hWnd) tbTrayIcon = SysTray.AddIcon("AutoPlay\\Icons\\icon.ico", "Tooltip", "SysTrayCallBack", "MenuCallBack"); if tbTrayIcon.Success then Window.Hide(hWnd) end end
yes i did ... it is just start bar icon doesnt hide when i minimize it, it remains there