Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-11-2007, 03:20 PM
Member
 
Join Date: May 2007
Posts: 53
Default Tray menu using

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;
The swf file is empty (some pic in it).

Could u give me an advice, how to find a problem..

Thx in advance.
__________________
#define true false //happy debugging, friends
Reply With Quote
  #2 (permalink)  
Old 07-12-2007, 05:57 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Tray menu using

Before showing the tray menu, you will have to bring the main window to top, as shown in the following code

Code:
getMainWnd().bringToTop();
var command = trayMenu.show();
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:26 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.