Gordon,
that was exactly my decision after your reply.
Thanks!
---Pablo Gustavo
Apanasionek De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre de Gordon Smith Enviado el: Viernes, 03 de Marzo de 2006 15:10 Para: flexcoders@yahoogroups.com Asunto: 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:
By design; x, y, width,
and height are regular properties, not styles. -
Gordon From:
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
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Button height and width in CSS? Gordon Smith
- RE: [flexcoders] Button height and width in CSS? Pablo Apanasionek
- Re: [flexcoders] Button height and width in CSS? Manish Jethani