|
|||
|
You'll have to create you own custom menu. Here is some code that does what you want:
Code:
Application.SysTray.useDefaultHandler = false;
Application.SysTray.onRClicked = function(){
getMainWnd().bringToTop();
menu.show();
var menu = new Menu();
menu.createPopupMenu();
if(getMainWnd().visible == true){
menu.appendItem("id0", "Hide Window");
}else{
menu.appendItem("id0", "Show Window");
}
menu.appendItem();
menu.appendItem("id1", "Exit");
var command = menu.show();
if(command == "id0") {
if(getMainWnd().visible == true){
getMainWnd().hide();
}else{
getMainWnd().show();
}
}
if(command == "id1") {
getMainWnd().close();
}
}
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|