Set frame to screen size
hi everyone,
i just have a quick question.
any replies would be GREATLY appreciated...
how do you set the size of a new frame to fit the size of the screen automatically. i have tried set size but it doesn't work when running on computers with different screen sizes...
are there any standard methods for this ?
thanks a bunch
java.awt.Toolkit.getDefaultToolkit().getScreenSize() returns a the screen dimension as
java.awt.Dimension
Similar Messages
-
Best practice for setting or detecting screen size?
Hi All,
Trying to determine a best practice for setting or detecting the screen size. For playbook and iOS, I can set them. But for Android, the number of devices is too large so I'd rather detect. My first choice is to use the stage.stageHeight and stage.stageWidth. This works fine if I set my stage properties with standard meta data:
[SWF(height="320", width="480", frameRate="64", backgroundColor="#010101")]
However, if I use the application descriptor file to set the stage dimentions (as suggested by Christian Cantrell here http://www.adobe.com/devnet/flash/articles/authoring_for_multiple_screen_sizes.html)
<initialWindow>
<aspectRatio>landscape</aspectRatio>
<autoOrients>false</autoOrients>
<width>320</width>
<height>480</height>
<fullScreen>true</fullScreen>
</initialWindow>
Then the stage.stageHeight and stage.stageWidth are not the correct numbers when my main class is added to the stage. Sometime after the main class is added to the stage, then those numbers are fine. Is there an event I can wait for to know that the stage.stageHeight and stage.stageWidth are correct?
Thanks in advance!Hi Lee,
Thanks for the quick response! However, for some reason the heightPercent & widthPercent metadata tags are not working as expected for me.
I have a wrapper class that I target for compiling, WagErgApplePhone.as where I've got my metadata
[SWF(heightPercent="100%", widthPercent="100%", frameRate="64", backgroundColor="#010101")]
sets some stage properties
stage.quality=StageQuality.LOW;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
and instantiates my main class
var main:Main = new Main();
addChild(main);
my main class constructor even waits for the stage
public function Main(){
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
in my init function, stage.stageHeight traces out as 375 (expecting 320).
i have a function which is called via a button press event by the user, and stage.stageHeight traces out correctly (320) there. that's what makes me think that if i wait long enough, i can get the correct stageHeight before init/drawing. but i'm not sure what event to listen for, or if there's another trick.
if i use Capabilities.screenResolutionX and Capabilities.screenResolutionY the correct values are provided for mobile, but these values are not useful for the desktop and web version of the app. if there's no other solution, i'll execute different code depending on platform.
again, for reference, my app descriptor:
<initialWindow>
<aspectRatio>landscape</aspectRatio>
<autoOrients>false</autoOrients>
<width>320</width>
<height>480</height>
<content>bin-iOS/WagErgApplePhone.swf</content>
<title>WAG ERG</title>
<fullScreen>true</fullScreen>
<renderMode>cpu</renderMode>
</initialWindow>
looking forward to any other ideas to try out & thanks so much for your thoughts! if you want to really dig in, this is an opensource project at code.google.com/p/wag-erg/ -
Personas: How set the default screen size when Personas starts up
Hi Personas experts,
When Personas starts, its screen size is by default small, say, size_A. One can press "+" to increase the screen size, say, size_B.
Now I want Personas to start with a bigger screen size, say, size_B instead of the default size, size_A. Does anyone know how to do this? Thanks.
Br,
DongHi Dong,
There is a minor tweak you have to do in your index.html file. Or I advise you copy the index.html file into a new file and run personas using it.
The tweak in the 40th line where you have the script. Just add switchPersonasObjectFullScreen();
<script type="text/javascript">
setPersonasObjectSize(1);
switchPersonasObjectFullScreen(); <!-- Add this here -->
trySetPersonasObjectSizeFromUrlParameters();
disableBrowserHelp();
</script>
</body>
Save . Activate and Run Personas using this file. It will open personas in Full Screen Mode within the browser window.
I hope this tweak helps.
Regards,
Manu -
How do you set a default screen size for safari windows to open at ?
Hi guys, I'm running my mac mini through a 50 inch plasma. I really like that safari opens the browser at a size that's just big enough to fit the page you are viewing to; but annoyingly my flatmate keeps changing the window size to full screen. I don't like this and have tried to play around with the settings so that it opesn in a default size every time but have been unable to do so.
If anyone has any suggestions it'd be greatly apreciated as this seemingly stupid problem is realllllly annoying me.
Cheers,
AJEvict your flatmate.
-
How do I set the screen size of my site?
Hey guys making a site for a friend and I'm not sure on how I go about setting a screen size that can be viewed on varying screen sizes like 1280x800 and up. At the moment on my 1920x1080 display it looks fine but when I open it on her MacBook Pro (1280x800) it is cut of by half and my website has some fixed anchors which I do not allow scrolling so you are kind of stuck.
Thanks to anyone that can help, can't find a tutorial anywhereIn the normal state the screen on an iPad will rotate depending on which side is up. Any of the four sides can be up or on top and the display will look correct. But if you want to lock the display in one orientation you can. Swipe up from the bottom of the screen to reveal the Control Center. Then tap on the Orientation Lock icon. That's the icon of the small padlock surrounded by a circular arrow. That icon will appear at the top right of the display and the screen will no longer rotate. Repeat the same procedure to unlock orientation.
-
I recently downloaded a 10.6.8 update and a game program has now been reduced in size. It's specifications are set for full screen, but it is about 1/4 of the size. Any ideas how to fix?
Hi, I have got the same problem but all is 1/4 the size have you fixed it?
-
How to set screen size of Labview toplevel application
HI,
I developed an application considering my monitors screen size. When my application was run on another machine whose monitor was set to a different resolution, parts of the application when off the screen. How can I make sure that when my application runs on any machine it will fit onto that screen.
Thanks
--AHi,
select File/VI Properties. In VI properties window select Category->Window Size. Select 3-rd option "Scale All Objects on panel as the Window Resizes". -
How to set the screen size with nested Iview screen
Can someone show me how to set the screen size with nested IView screen.
at the moment i only try it with trial and error untill it looks somewhat close. Is there a property in VC to set the size for Height and width.
The same question is for the form. the form elements inside the form is easy but the actual form is still a challenge.Hi,
Yes you are correct ,Still the Form and iview are not able to change thier Layout Structure using a Propery.
it is available with VC7.1
Govindu -
Is there a script to create a button to set an activated frame to document size + bleed?
Please see my question above. Thanks in advance!
Here is a script that creates a script that creates a button that sets an activated frame to document size + bleed.
Why do you need a script to create a button that sets an activated frame to document size + bleed? You might as well have a script that sets an activated frame to document size + bleed, because you already need to double-click the script that sets an activated frame to document size + bleed and so there is no need to show another button that you can click to set an activated frame to document size + bleed in that.
theScript = 'var w = new Window("dialog", "Reframe");\n'+
'w.b = w.add("button", undefined, "Click me!");\n'+
'w.b.onClick = function(){ w.close(3); };\n'+
'if (w.show() == 3)\n'+
'{\n'+
'dp = app.activeDocument.documentPreferences;\n'+
'app.selection[0].geometricBounds = [\n'+
'app.layoutWindows[0].activePage.bounds[0]-dp.documentBleedTopOffset,\n'+
'app.layoutWindows[0].activePage.bounds[1]-dp.documentBleedBottomOffset,\n'+
'app.layoutWindows[0].activePage.bounds[2]+dp.documentBleedInsideOrLeftOffset,\n'+
'app.layoutWindows[0].activePage.bounds[3]+dp.documentBleedOutsideOrRightOffset];\n'+
writeFile = new File (app.activeScript.parent+'/new script.jsx');
writeFile = writeFile.saveDlg( 'Save script', File.fs == "Windows" ? "Script:*.jsx,All files:*.*" : function(file) { return file instanceof Folder || (!(file.hidden) && file.name.match(/\.jsx$/i)); } );
if (writeFile != null && writeFile.open("w"))
writeFile.encoding = "utf8";
writeFile.write (theScript);
writeFile.close(); -
How to set width to be same as screen size?
Dear all
I want to set the width of my view elements to be same as that of screen size, so that if a user with low resolution monitor runs it, or if a user with high resolution monitor runs it, both see the same.
I tried setting the width to 100%. But it is not working.
My root container layout is Grid layout.
Any suggestions please?
Thanks in adv.Hi,
For ROOTUIELEMENTCONTAINER set the stretchedHorizontally,stretchedVertically to true.
And for the UI element set width as 100%, this will make the UI elem to expand to the complete screen.
Best regards,
Suresh
Message was edited by:
Suresh Honnappanavar -
IPhone app screen size set up in Photoshop
I'm designing an iPhone app in Photoshop. I want to work in 2X size.
What size should I set the screen up in Photoshop to be able to export UI images and icons accurately?
Should I use an iPhone 5 or iPhone 6 screensize?
These are both 2X png but screensizes are different, therefore UI exported for the @2X size will differ depending on which screensize I first decide to start with.If you choose File > New and choose the Mobile App Design preset, you'll find the Size menu already lists most recent iPhone screen sizes including the 6 and 6 Plus.
Mylenium's link is very helpful; if you go there and go to Icon and Image Sizes there's a table of dimensions for all of those things.
If you have Photoshop CC 2014, you can set up Generator and Extract Assets to export layers (e.g. button designs) to multiple pixel dimensions automatically. That will be a lot easier and faster than manually sizing/cropping/exporting. -
I have installed solaris 10 in the vmware workstation. During the installation, I have updated the screen size to 15 inch, I would like to change the screen size setting to 17 inch now, how could I do that?
Thanks all in advanceThis forum is to discuss the new container technology in Solaris 10.
A better place to ask your question would be the general forum
at
http://forum.sun.com/forum.jspa?forumID=271 -
7.1: set Screen Size of PDA Emulator
We are developing a 7.1 PDA Mobile App using a client device with a bigger screen (VGA) than the emulator by default opens up with.
Is there a setting (eg. in MI\settings\core.properties) to define the screen size?
Thanks, AndreHi Sivakumar,
thanks for checking and letting me know.
In the meantime I installed a software to control windows: Autohotkey. The little script below resizes the window and enters my user id and password. It is one click only if you have a link in the QuickLaunch Tray.
Cheers, Andre
WinWait, SAP NetWeaver Mobile,
IfWinNotActive, SAP NetWeaver Mobile, , WinActivate, SAP NetWeaver Mobile,
WinWaitActive, SAP NetWeaver Mobile,
WinGetPos X, Y, W, H
WinMove SAP NetWeaver Mobile,,X, Y, 800, 400
MouseClick, left, 483, 78
Sleep, 100
Send, userid{TAB}password
MouseClick, left, 36, 34
Sleep, 100 -
Hi
How change screen size in simplest way? Now I have 640x480, but i wont to set up to 1280x1024.
in Preferences->DesktopPreferences->Display->Screen Resolution I I see only one option 640x480
I try use xorgconfig but then my Xserver dosn't start.
Monitor : DELL M920
Graphisc: Nvidia GeForce FX5200 Ultimate
Mouse: Logiteh MX310
Keyboard: Labtec Flat
in xorgconfig:
Mouse :
option 1 - Auto,
Emulate3Buttons - y,
MouseDevice - Enter
Keyboard :
7 -Generic 104 key PC
Enter a number to choose the country - 60 and next Enter
Do you want to select additional XKB options - no
Monitor :
11 Enter your own horizontal sync range - 96
5 Enter your own vertical sync range - 160
Enter an identifier for your monitor definition: DELL
Graphics :
349 - NVIDIA GeForce
10 - 131072K
Enter an identifier for your video card definition: FX5200
4 16 bits (65536 colors)
Help!!Did you get an answer to this question?
-
when FFX launches it defaults to a screen size smaller then I'd like for default. Is there a way to change this?
I run it on an external 24" screen of an MBA running 10.7.5Hello metropical,
Thank you for contacting Mozilla Support. That does sound frustrating. After doing some searching on our support site I've found that if you EXIT Firefox, the window will return to the same position it was in at the START of the last session. If you CLOSE Firefox it will save the position it was in at the END of the last session.
Please let us know if this solves your problem.
Cheers,
Patrick
Maybe you are looking for
-
EXCEPTION_ACCESS_VIOLATION (0xc0000005) on compiled Java code
I'm confronted with the following error of this code. http://db-www.naist.jp/~makoto-y/tmp/Int2LongHash.java The exception appears only when the system gets high-load. Is there work-arounds? I've tried also with jdk1.5.0_06, but the same error occurr
-
Can't find file for Trojan Horse on my MacBook
Anyone seen this before? I have the Norton Antivirus Program installed on my MacBook. I believe an attack occurred while I was looking through the Apple Support Forums for help with a QuickTime problem and accidentally clicked on the following link:
-
[SOLVED] Apache + PHP + XDEBUG profiler refuses to write any files
I'm trying to track down some performance problems and the xdebug profiler seems like the tool to use. Unfortunately no matter what I try xdebug simply will not write an output file. I've searched these forums, and stackoverflow, and tried all sugge
-
hi i am importing HDV footage from my JVC BR-HD50 deck. the problim is that after importing the footage it playes back at almost doule the speed. Has any one had this problem or know a solution to fix it? thanks in advance mike
-
It seems as if Windows is the only operating system, but the disk shows only the space that I gave for Windows not the entire 500 GB.