Aug 23
接下来的例子演示了Flex中如何通过buttonWidth样式,在ButtonBar组件中创建一定宽度按钮(Button)。要恢复原来的状态,只需要简单的将buttonWidth设置为NaN就可以了。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: Button, ButtonBar, buttonWidth, 宽度
Aug 21
在前面的Flex中通过设置嵌入字体以及替换默认Skin自定义Button风格的例子中我们介绍过通过设置嵌入字体以及替换默认Skin,自定义Button风格。当然我们也可以在auzn经典Flex教程–KingnareStyle皮肤制作简介中了解到更加深入的Skin处理。万丈高楼也是从地基开始的,接下来的例子演示了Flex中通过设置skin, upSkin, overSkin, downSkin和disabledSkin样式,修改按钮(Button)的皮肤(Skin)。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: Button, disabledSkin, downSkin, overSkin, Skin, upSkin
Aug 16
接下来的例子演示了Flex中通过设置嵌入字体以及替换默认Skin,自定义Button风格。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: @font face, Button, embedFonts, 字体
Aug 12
接下来的例子演示了Flex中利用color, disabledColor, textRollOverColor和textSelectedColor样式,设置有效状态和无效状态下按钮颜色。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: Button, Color, disabledColor, textRollOverColor, textSelectedColor
Aug 10
在前面Flex中利用labelPlacementChanged事件检测按钮(Button)中标签(Label)位置是否改变的例子中其实已经用到了,接下来的例子演示了Flex中通过按钮类的textAlign样式和labelPlacement属性,控制按钮(Button)标签位置。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: Button, icon, labelPlacement, textAlign
Jul 28
接下来的例子演示了Flex中如何利用toggle,emphasized和selected属性,创建按钮选中状态。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: Button, emphasized, selected, toggle
Jul 27
在注册某个网站账户的时候,通常我们需要阅读相关协议,这个时候很多都采用了某一定时间内“同意”按钮无效的机制。接下来的例子就演示了这一做法的Flex实现。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: Button, Timer, 无效
Jul 25
接下来的例子演示了Flex中如何通过borderColor和borderColor属性,设置按钮(Button)控件边框颜色和theme颜色。例子中列举了”haloBlue”, “haloGreen”, “haloOrange” or “haloSilver”等几种方案。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: borderColor, Button, emphasized, halo, Theme, themeColor
Jul 19
接下来的例子演示了Flex中通过调用autoRepeat属性和buttonDown事件,创建一个自动重复用户按下时动作按钮(Button)。比较拗口,简单的说就是用户按下鼠标,并且保持按下状态,该按钮一直执行鼠标按下时的动作,直到结束。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: autoRepeat, Button, buttonDown, repeatDelay, repeatInterval, 按钮
Jul 19
在前面介绍过Panel容器边角圆滑控制,NumericStepper控件边角圆滑控制,类似的,接下来的例子演示了Flex中如何通过cornerRadius属性,控制按钮(Button)控件边角圆滑程度。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: Button, cornerRadius, 按钮