Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-11-2005, 11:01 AM
Junior Member
 
Join Date: Dec 2005
Posts: 14
Default Applications system tray onLClicked

When we click on the system tray icon, I just want to “main window normal/minimize function” according to the window status.

The code I came across has an error because it loops and “else if” is not gets as a valid command in side the function. Is there any other way? That I can proceed.

Code:
Application.SysTray.onLClicked = function ()
{
var wnd = getMainWnd();
trace(wnd.windowState);
if (wnd.windowState  == "minimized");
wnd.windowState = 'normal';
wnd.bringToTop();
//Else if (wnd.windowState  == "normal")
//wnd.windowState = 'minimized';
//wnd.hide();

}
Reply With Quote
  #2 (permalink)  
Old 12-11-2005, 11:56 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Applications system tray onLClicked

Code:
Application.SysTray.onLClicked = function ()
{
var wnd = getMainWnd();
if (wnd.windowState != 'minimized')
{ 
wnd.windowState = 'minimized';
}
else 
{
wnd.windowState = 'normal';
wnd.bringToTop();
}
}
Reply With Quote
  #3 (permalink)  
Old 12-12-2005, 02:40 AM
Junior Member
 
Join Date: Dec 2005
Posts: 14
Default Re:Applications system tray onLClicked

Thanks a lot admin.
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 02:07 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.