Application fitting to Resolution 1024/768

1 view
Skip to first unread message

Jagdish

unread,
Dec 4, 2009, 4:43:27 PM12/4/09
to Flex India Community
How can I make sure that the application content fit the the system
at resolution 1024/768 now i am facing scrollbar issues as we change
the resolution to 1024/768 .

Can some one help me asap pls.
Optional :should look uniform (irrespective of monitor's dimensions).
Thanks for all the help and support.

surendra chowdary

unread,
Dec 4, 2009, 11:25:34 PM12/4/09
to flex_...@googlegroups.com
Hi 
make sure X,Y co-ordinates in percentages of all the fields.


--

You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_...@googlegroups.com.
To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.





--
with Regards,
Surendra.

Jagdish

unread,
Dec 5, 2009, 1:49:48 PM12/5/09
to Flex India Community
Surendra,
Thanks but we are following percentages almost in all the parts of
the screen except at few places where i have to fit the buttons or
some boxes at the corners . Do you think even that effects .

DO you have any other suggestion using system manger class or external
interface to control this.


Thanks,
Eshwar

On Dec 4, 9:25 pm, surendra chowdary <surendrachowdary.m...@gmail.com>
wrote:
> Hi
> make sure X,Y co-ordinates in percentages of all the fields.
>
>
>
> On Sat, Dec 5, 2009 at 3:13 AM, Jagdish <eshwar.ean...@gmail.com> wrote:
> > How can I make sure that the application  content fit the the system
> > at resolution 1024/768  now i am facing scrollbar issues as we change
> > the resolution to 1024/768 .
>
> > Can some one help me asap pls.
> > Optional :should look uniform  (irrespective of monitor's dimensions).
> > Thanks for all the help and support.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Flex India Community" group.
> > To post to this group, send email to flex_...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > flex_india+...@googlegroups.com<flex_india%2Bunsu...@googlegroups.com>
> > .

krishna sakinala

unread,
Dec 6, 2009, 12:28:58 PM12/6/09
to flex_...@googlegroups.com
Yeah, you should not use pixel for layout designing instead of that
use % symbol then you will not have any problem.
> --
>
> You received this message because you are subscribed to the Google Groups "Flex India Community" group.
> To post to this group, send email to flex_...@googlegroups.com.
> To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.
>
>
>



--
krishna S

girish

unread,
Dec 6, 2009, 11:30:44 PM12/6/09
to flex_...@googlegroups.com
HI jagadish,

use

 width="{(Screen.mainScreen.bounds.width)}" 
 height="{(Screen.mainScreen.bounds.height)}" 

instead of 100%
--
girish kumar.g
ph no :9966021209

Mayur

unread,
Dec 7, 2009, 4:47:57 AM12/7/09
to Flex India Community
Folks,


1) Screen class is available only for AIR applications not web-
browser base applications.

2) If your goal to specific resolution 1024 x 768 than keep your
outermost containers with and height to 1024 x 768 and keep other
inner components by ' % ' as required.


~ Mayur

Jagdish

unread,
Dec 7, 2009, 9:49:58 PM12/7/09
to Flex India Community
Mayur,

Thanks for the reply but can you please show some sample code for
this.

cheers,
Jagdish

On Dec 7, 2:47 am, Mayur <mayur.r...@gmail.com> wrote:
> Folks,
>
> 1)  Screen class is available only for AIR applications not web-
> browser base applications.
>
> 2)  If your goal to specificresolution1024 x 768  than keep your

Jagdish

unread,
Dec 7, 2009, 9:52:33 PM12/7/09
to Flex India Community
Hey Girish,

Thanks for the reply .

Am working on a web application .can you suggest me some other
source.

Abhinav Mehta

unread,
Dec 8, 2009, 7:54:50 AM12/8/09
to flex_...@googlegroups.com
Hi Girish

I also found the same problem in my project, what I did there was-
While intializing the application i.e. preintilaized(), i use to call
one-algo inside that- this algorithm in turn calculates the current screen
resolution....by:
mx.core.Application.application.screen.X &
mx.core.Application.application.screen.Y
further(you can use)-
mx.core.Application.application.screen.height
mx.core.Application.application.screen.width

Now after getting the client-app screen resolution, I use to set one
'flag'(kind of variable), which states that which screen-resolution the
client is using, now on the basis of that (flag), further components layout
is rendered at the run-time....further using this policy I could
successfully add/modify the further requirements(changes- if any), just by
adding one more flag-state.


Regards
Abhinav Mehta
MSRIT- Bangalore

Mayur

unread,
Dec 8, 2009, 8:20:54 AM12/8/09
to Flex India Community
Jagdish,


See the code snippet : one thing.... you will have to consider
"yourMainView - canvas" as a principal UIComponent and add / remove
all your consecutive views with respect to it. Test it with diff.
resolutions it will definitely show persistent view.


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" pageTitle="Mayur's central view"
width="100%" height="100%"
backgroundGradientColors="[0xeeeeee,0xbbbbbb]">
<mx:Canvas id="yourMainView"
horizontalCenter="0" verticalCenter="0"
width="1024" height="768"
borderStyle="solid"
borderThickness="2" borderColor="#FF00ff"
backgroundColor="0x333333">
</mx:Canvas>
</mx:Application>


~ Mayur
Enjoy Flexing :)
http://mprami.wordpress.com
Reply all
Reply to author
Forward
0 new messages