Re: [flexcoders] Application dimension for 1024x768 res

2008-01-14 Thread Igor Costa
Greg

I was explain right minutes ago to a brazilian developer at
flexbrasil.orgabout same question you're asking.

So to be very short in answer and clear as possible, There's no best
praticies for this, but has solutions first aid kit to solve problems like
that.

the Flex SDK has a class responsable for that called LayoutManager witch
calls a method updateDisplayList() when you use fixed or percent values to
the entire UI components you're using into your application.

So, When you us width height combined with % usage, it's hard to fit into
the container(application) and create a great App. Well To fix that gap I
suggest you to use containers in % mode too, they will mesure the sizes and
always will place things in right mode. An example of that you could test to
see it:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx= http://www.adobe.com/2006/mxml;
layout=absolute
mx:HDividedBox width=100% height=100%
mx:RichTextEditor width=50% height=100%

/mx:RichTextEditor
mx:TextArea width=50% height=100%

/mx:TextArea
/mx:HDividedBox
/mx:Application


When the container itself verified witch values are in the (width/height)
automatically the layoutManager calculate the sizes and fit the controls
into the Container witch is located.

But if you want to make fixed sizes to your end-users you could fill gaps
using kind of technique as Manually.

?xml version=1.0 encoding=utf-8?
mx:Application enterFrame=checarTamanho()
xmlns:mx=http://www.adobe.com/2006/mxml
 layout=absolute

mx:Script
![CDATA[

private function checarTamanho():void
{
if(mx.core.Application.application.width = 800 ||
mx.core.Application.application.height =600)
{
pp.percentWidth = 50;
pp.x = 0;
pp.y = 0;
pp.percentHeight = 100;
pp2.percentHeight = 100;
pp2.percentWidth = 50;
}
if(mx.core.Application.application.width =800 ||
mx.core.Application.application.height =600)
{
pp.title = tmanho fixo;
pp.width = 300;
pp.x = 0;
pp.y = 0;
pp2.x = 500;
pp2.y = 0;
pp.height = 400;
pp2.width = 300;
pp2.height = 500;
}
}
]]
/mx:Script

mx:RichTextEditor id=pp

/mx:RichTextEditor
mx:TextArea id=pp2

/mx:TextArea
/mx:Application

For sure using manually isn't a best praticies because of some problems with
browser borders or you can't get the exactly the value of Browser window
opened.

So, hope you got the message.


Regards
Igor Costa


On Jan 14, 2008 12:59 PM, Greg Hess [EMAIL PROTECTED] wrote:

Hi All,



 What is best practice application dimension for designing an application
 for a target audience with 1024x768 resolution?



 We require no horizontal or vertical scrolling and I am not sure what is
 the standard dimension is today with all the browser tool bars ect…



 Any comments much appreciated.



 Thanks,


 Greg
  




-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


Re: [flexcoders] Application dimension for 1024x768 res

2008-01-14 Thread Tom Chiverton
On Monday 14 Jan 2008, Greg Hess wrote:
 What is best practice application dimension for designing an application
 for a target audience with 1024x768 resolution?

Don't is my personal view :-)
Instruct your app to take up '100%' of the height and width, and let the 
player sort it out for you.

 We require no horizontal or vertical scrolling and I am not sure what is
 the standard dimension is today with all the browser tool bars ect...

There isn't one standard dimension.

-- 
Tom Chiverton
Helping to globally evolve impactful patterns
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Application dimension for 1024x768 res

2008-01-14 Thread Greg Hess
Hi All,

What is best practice application dimension for designing an application for a 
target audience with 1024x768 resolution?

We require no horizontal or vertical scrolling and I am not sure what is the 
standard dimension is today with all the browser tool bars ect...

Any comments much appreciated.

Thanks,

Greg