|
|||
|
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\"};"); } |
|
|||
|
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;
}
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|