Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-26-2008, 06:04 AM
Junior Member
 
Join Date: Sep 2007
Posts: 11
Default icon in windows taskbar!how to add my titile and function()

icon in windows taskbar!how to add my titile and function()
hot to edit “close” and "hide swfkit player" !

i need close = Exit or GoodBuy
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 04:03 PM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default Re: icon in windows taskbar!how to add my titile and function()

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();
}
}
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 02:50 AM
Junior Member
 
Join Date: Sep 2007
Posts: 11
Default Re: icon in windows taskbar!how to add my titile and function()

Thank You very much! ;D Now you are my teacher ! Thanks
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 05:02 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.