RE: [flexcoders] Button height and width in CSS?

2006-03-03 Thread Gordon Smith










By design; x, y, width, and height are
regular properties, not styles.



- Gordon











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pablo Apanasionek
Sent: Friday, March 03, 2006 5:39
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Button
height and width in CSS?







Is it a bug or by design, that button's height and width
can't be set through CSS?











Thanks



---Pablo Gustavo Apanasionek









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Button height and width in CSS?

2006-03-03 Thread Gordon Smith










Are you aware that if you want a bunch of
100 x 30 buttons, you don't have to specify width=100
height=30 on every one of them? Just make a 2-line custom component
that defines default values for these properties and then use it instead:



MyButton.mxml:



?xml version=1.0
encoding=utf-8?

mx:Button
xmlns:mx=http://www.adobe.com/2006/mxml width=100
height=30/



MyApp.mxml:



?xml version=1.0
encoding=utf-8?

mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml xmlns:my=* width=600
height=600

 my:MyButton/

 my:MyButton/

 my:MyButton/

/mx:Application



A lot of developers don't realize that
custom components are useful for simple things like this.



- Gordon











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith
Sent: Friday, March 03, 2006 9:57
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Button
height and width in CSS?





By design; x, y, width, and height are
regular properties, not styles.



- Gordon











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pablo Apanasionek
Sent: Friday, March 03, 2006 5:39
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Button
height and width in CSS?







Is it a bug or by design, that button's height and width
can't be set through CSS?











Thanks



---Pablo Gustavo Apanasionek










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Button height and width in CSS?

2006-03-03 Thread Pablo Apanasionek





Gordon,

that was exactly my decision after your reply.

Thanks!
---Pablo Gustavo 
Apanasionek


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] En nombre de Gordon 
SmithEnviado el: Viernes, 03 de Marzo de 2006 15:10Para: 
flexcoders@yahoogroups.comAsunto: RE: [flexcoders] Button height and 
width in CSS?


Are you aware that if 
you want a bunch of 100 x 30 buttons, you don't have to specify width="100" 
height="30" on every one of them? Just make a 2-line custom component that 
defines default values for these properties and then use it 
instead:

MyButton.mxml:

?xml version="1.0" 
encoding="utf-8"?
mx:Button 
xmlns:mx="http://www.adobe.com/2006/mxml" width="100" 
height="30"/

MyApp.mxml:

?xml version="1.0" 
encoding="utf-8"?
mx:Application 
xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:my="*" width="600" 
height="600"
 
my:MyButton/
 
my:MyButton/
 
my:MyButton/
/mx:Application

A lot of developers 
don't realize that custom components are useful for simple things like 
this.

- 
Gordon





From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] 
On Behalf Of Gordon 
SmithSent: Friday, March 03, 
2006 9:57 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Button height and 
width in CSS?

By design; x, y, width, 
and height are regular properties, not styles.

- 
Gordon





From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] 
On Behalf Of Pablo 
ApanasionekSent: Friday, March 
03, 2006 5:39 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Button height and 
width in CSS?


Is it a bug or by design, that 
button's height and width can't be set through 
CSS?



Thanks
---Pablo Gustavo 
Apanasionek






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Button height and width in CSS?

2006-03-03 Thread Manish Jethani
On 3/3/06, Gordon Smith [EMAIL PROTECTED] wrote:

 By design; x, y, width, and height are regular properties, not styles.

 But you can make them work like CSS!

http://mannu.livejournal.com/299285.html

Manish


--
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/

* 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/