|
|||
|
Hello!
Tray menu worked fine, until i reinstalled windows. Now, when i open tray menu of my app by right-click, i need to click somewhere at the menu or at the app to close that menu. I reinstalled SWFKit many times. Cant find the reason.. The version of the windows is the same (win xp pro sp2). The code in SWFKit: Code:
//Initialize
Application.SysTray.useDefaultHandler = false;
Application.SysTray.onRClicked = function () {
trayMenu = new Menu;
trayMenu.createPopupMenu();
if(getMainWnd().windowState == "minimized") {
trayMenu.appendItem("id0", "Развернуть");
}
else {
trayMenu.appendItem("id0", "Свернуть");
}
trayMenu.appendItem();
trayMenu.appendItem("id1", "Закрыть");
var command = trayMenu.show();
if(command == "id1") {
getMainWnd().close();
}
}
return true;
Could u give me an advice, how to find a problem.. Thx in advance.
__________________
#define true false //happy debugging, friends |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|