Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-20-2009, 09:15 AM
Junior Member
 
Join Date: May 2009
Posts: 7
Default Question about Border Style

when i set the "Border Style" to "None"

and wrote a function to instead "maximization window" Button

When i call the "maximization window" function, the window covered taskbar.
if i set the Border Style to "Normal", and then call the function , the window won't covered taskbar.

i want to call the function but don't covered taskbar. how to do that?




see following codes:
function onMaxBtnClick(e:MouseEvent = null):void
{
if(isbiger)
{
fscommand("FFish_Eval", "getMainWnd().windowState=\"maximized\";");
}else
{
fscommand("FFish_Eval", "getMainWnd().windowState=\"normal\";");
}
isbiger = !isbiger;
//fscommand("FFish_Eval", "if(getMainWnd().windowState!=\"normal\"){getMainW nd().windowState=\"maximized\"}else{getMainWnd().w indowState=\"normal\"};");
}
Reply With Quote
  #2 (permalink)  
Old 05-21-2009, 03:55 AM
Junior Member
 
Join Date: May 2009
Posts: 7
Default

anybody help?
Reply With Quote
  #3 (permalink)  
Old 05-21-2009, 06:33 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

You can set the size and position of the main window by yourself. For instance, you can call the following ffish script code in your button event handler

Code:
if (Application.SizeAndPos.windowSize == $SSDEFAULT) {
	var scrWidth = SysInfo.workareaRight - SysInfo.workareaLeft;
	var scrHeight = SysInfo.workareaBottom - SysInfo.workareaTop;
	
	Application.SizeAndPos.setCustomSizeAndPos(0, 0, scrWidth, scrHeight);
} else {
	Application.SizeAndPos.windowSize = $SSDEFAULT;
	Application.SizeAndPos.pos = $ASSCREENCENTER;
}
Reply With Quote
  #4 (permalink)  
Old 05-22-2009, 05:22 AM
Junior Member
 
Join Date: May 2009
Posts: 7
Default



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:45 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.