简体   繁体   中英

How to create a vertical button in Flex 3

I'd like to create a button that is basically a rotated 90's so that it is in effect a vertically aligned button. So that the the text is like that of a book spine.

Thanks in advance.

You need to set the rotation property of the button... so the mxml would be something like:

<mx:Button id="myButton" label="CLICK ME"  rotation="90" />

Edit

As a side note you will probably need to embed the font you are using if you want the text to be visible after the component has been rotated

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM