Flex(FB 4.5)按钮上的多行标签? [英] Multi-line labels on flex (FB 4.5) buttons?

查看:127
本文介绍了Flex(FB 4.5)按钮上的多行标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Flash Builder 4.5中创建多行(特定换行符,都是左对齐)的按钮,第二行用斜体表示。我可以通过制作一个按钮,并在其上面放置一个标签来实现这一点,但是它会在该标签所在的位置破坏按钮的功能。

有没有一个简单的功能来做到这一点,还是开始步入自定义皮肤? (我已经看过了,但对于FB来说,我还是个新手,看起来像是一个陡峭的学习曲线) 解决方案

是的,你肯定要剥皮。这很容易,因为它会为你生成所有的代码。您只需要找到该按钮的标签,并将其修改为您的意愿。



对不起,但这是正确执行此操作的唯一方法。如果你想要做的只是把它拼凑在一起,我不认为你应该触摸代码...

I'm trying to make a button in Flash Builder 4.5 that is multi-lined (specific line break, both are left justified), with the second line being italicized. I can do this by making a button, and throwing a label on top of it, but it wrecks the button functionality where that label sits.

Is there an easy functionality to do this, or is it starting to step into custom skins? (I've looked at it, but I'm pretty new to FB, and it looks like a steep learning curve)

解决方案

Yeah, you definitely want skinning. It's fairly easy since it generates all the code for you. You just need to find the label for the button and modify it to your will.

Sorry to say, but this is the only way to do it properly. If what you're trying to do is just hack it together, I don't think you should be touching code...

这篇关于Flex(FB 4.5)按钮上的多行标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆