Jexter,
I did play around with that for a while ... could not make sense of
what was happening ... especially the zoom scale ...
Code below for u to try out!
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
width="100%" height="100%">
<mx:Script>
<![CDATA[
function resizeApp(sm) {
if (sm == "showAll") {
Stage.scaleMode = "showAll";
}
if (sm == "exactFit") {
Stage.scaleMode = "exactFit";
}
if (sm == "noBorder") {
Stage.scaleMode = "noBorder";
}
if (sm == "noScale") {
Stage.scaleMode = "noScale";
}
}
]]>
</mx:Script>
<mx:Panel width="100%" height="100%" title="How does this
scale">
<mx:Button label="showAll" click="resizeApp('showAll')" />
<mx:Button label="exactFit" click="resizeApp('exactFit')"
/>
<mx:Button label="noBorder"
click="resizeApp('noBorder')" />
<mx:Button label="noScale"
click="resizeApp('noScale')" />
</mx:Panel>
</mx:Application>
Regards
Sree
JesterXL wrote:
...this sounds like turning stage
scaling on. For a test, try this in your main app:
Stage.scaleMode = "showAll".
I believe Flex has it set to
"noScale", and thus uses the Flex containers to draw the change in size
rather than have the SWF scale. Try that, see if it works for you.
-----
Original Message -----
Sent: Friday, May 20, 2005 1:20 AM
Subject: Re: [flexcoders] Scale the size of a whole
application
Actually, I am working down a path that uses a canvas and dynamically
adjusts the ScaleX and ScaleY properties based on the size of the
application in the browser using the applications onResize event. So
far, the effect is exactly what I'm looking for. Even the fonts are
getting scaled correctly. It works okay with non-embeded fonts but
I've found it works perfectly with embeded fonts. My only concern now
is how well it will perform once the UI gets a bit more complicated.
If anyone else is interested, I can post my solution once I get it a
little more perfected.
M.
On 5/19/05, Sreejith Unnikrishnan <[EMAIL PROTECTED]> wrote:
One interesting adventure you can
embark on is to put the whole application in a mx:Canvas and use
mx:Zoom to scale it based on the resolution. I have never tried this
before, so can't tell. I have doubts about the font-size etc :-)
Sree
Matthew Shirey wrote:
I
was afraid I hadn't explained the problem right...
Setting to those just takes up the space, it doesn't actually scale the
content larger. It resizes the layout managers larger which results in
a lot of unused white space for my application. I need the contents to
scale so if you make the window twice as large, then all of the
contents are twice as big. Bigger fonts, bigger everything. I'm not
sure how I can clarify this any further... :(
-- Matthew
On 5/19/05, JesterXL <[EMAIL PROTECTED]
> wrote:
Make the width and height of
your application tag 100%...? That's what I do to get full screen
real-estate usage. Decreasing margins on things helps a lot too.
-----
Original Message -----
Sent: Thursday, May 19, 2005 6:31 PM
Subject: [flexcoders] Scale the size of a whole
application
This may sound like a odd request, but is there a way to scale the size
of a whole application so that all of the contents get larger? The
functionality that I desire is similar to what happens to a Flash movie
when you make its size bigger. I'd like to design an application at a
fixed resolution like 800x600. If the user then makes the web browser
bigger, I'd like the contents to scale up in size. Right now, with the
layout managers I basically just end up with more space. A lot of it
is wasted empty space. I have a specific user that is mildly vision
impaired. He makes everything on his screen gigantic. His monitor is
a nice 21" flat panel at 1600x1200 resolution. I'd like him to be able
to maximize the application to 1600x1200 there by making everything in
the application which is designed at 800x600 scale up to that size.
Anyone have any suggestions? I was a little long winded there, but I
hope I've accurately described my problem and the type of solution I'm
looking for. Any other suggestions on how I can deal with visibility
impaired users would also be helpful. Thank you!
-- Matthew
Yahoo! Groups Links
Yahoo! Groups Links
Yahoo! Groups Links
|