开发者

Change size of checkbox in Flex

In Flex, is there an easy w开发者_开发问答ay to change the size of a Checkbox? I want to make the checkbox bigger, but the label beside it the same font size. Thanks!


I've used scaleX and scaleY. I think the syntax is scaleX="1.5" scaleY="1.5" to make it 50% larger.


I would imagine you could programatically skin the checkbox but ive never done it. Just increase the w and h passed in from the updateDisplayList(w:Number, h:Number) function when creating a programmatic skin.

Another option, albiet rather hacky, would be to make a custom control. A canvas, a label for the checkbox text and an image for the actual "check". Click on the image, if its checked it shows your unchecked image and vice versa.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜