`
Supanccy2013
  • 浏览: 213886 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

flex之Button,ButtonBar,LinkButton,LinkBar,ToggleButtonBar

    博客分类:
  • Flex
阅读更多
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
	<fx:Declarations>
		<!-- 将非可视元素(例如服务、值对象)放在此处 -->
	</fx:Declarations>
	<fx:Script>
		<![CDATA[
			import mx.collections.ArrayCollection;
			import mx.controls.Alert;
			public var myArray:ArrayCollection = new ArrayCollection(['One','Two','Three']);
			public function showMsg(msg:String):void
			{
			Alert.show('you just click on ' + msg);
			}
		]]>
	</fx:Script>
	
	<s:Panel title="Profile" width="360" height="240" horizontalCenter="0" verticalCenter="0">
		<s:layout>
			<s:HorizontalLayout/>
		</s:layout>
		<s:VGroup>
			<s:Button id="thisBtn" label="Button" click="showMsg('button')"/>
			<mx:LinkButton id="thisLinkBtn" label="Linkbutton" click="showMsg('linkbutton')"/>
		</s:VGroup>
		
		<s:VGroup>
			<s:ButtonBar id="thisBtnBar" dataProvider="{myArray}"
						 click="showMsg(ButtonBar(event.currentTarget).selectedItem)"
						 />
			<mx:LinkBar id="thisLinkBar"
						dataProvider="{myArray}"
						itemClick="showMsg(event.label)"/>
			<mx:ToggleButtonBar id="thisToggleBar"
								dataProvider="{myArray}"
								itemClick="showMsg(event.label)"/>
		</s:VGroup>
	</s:Panel>
</s:Application>
分享到:
评论

相关推荐

    Flex button和buttonBar的操作

    NULL 博文链接:https://chenhailong.iteye.com/blog/1915623

    flex 4.6Css

    Button | ButtonBar | TabBar | ToggleButton | CheckBox | RadioButton | Scroller | HScrollBar VScrollBar | HSlider | VSlider | DropDownList | TextArea | TextInput | ComboBox | List NumericStepper | ...

    ButtonBar的使用

    关于Button 的使用,还有一些第方控件,有兴趣者可以拿来研究研究...

    Flutter Button 按钮.dart

    在 Flutter 里有很多的 Button,包括了:MaterialButton、RaisedButton、FloatingActionButton、FlatButton、IconButton、ButtonBar、DropdownButton 等。 一般常用的 Button 是 MaterialButton、IconButton、...

    Android编程实现将ButtonBar放在屏幕底部的方法

    前面一篇《Android编程实现将tab选项卡放在屏幕底部的方法》提到ButtonBar的方式写底部button,试了试,看起来外观貌似比Tab好看,不过恐怕没有Tab管理Activity方便吧,毕竟一 个Tab就是一个Activity,但是这样用...

    DevPower-buttonbar.zip

    DevPower-buttonbar.zip

    RaisedButton、FlatButton、OutlineButton、IconButton、ButtonBar

    此资源介绍的相关内容有:按钮组件 RaisedButton、FlatButton、OutlineButton、IconButton、ButtonBar以及自定义按钮组件 FloatingActionButton实现类似闲鱼App底部导航凸起按钮。 适合新手学习移动端开发,也适合老...

    appcompat-v7

    v7-26.0.1-alpha1AppCompat_Body1 style TextAppearance_AppCompat_Body2 style TextAppearance_...style Widget_AppCompat_Button_ButtonBar_AlertDialog style Widget_AppCompat_Button_Colored style Widget_A

    angular-buttonbar:角度按钮栏

    one is 'source' and another one is 'options'.'source' is array of data, that can be use for create button bar.if source is string array, then you don't worry about the button label, in case source is...

    Janus WinForms Controls v4.0

    内含Janus.Windows.UI.v4.dll、Janus.Windows.TimeLine.v4.dll、Janus.Windows.Schedule.v4.dll、Janus.Windows.Ribbon.v4.dll、Janus.Windows....Windows.CalendarCombo.v4.dll、Janus.Windows.ButtonBar.v4.dll...

    bsfd皮肤资源修改

    bsfd皮肤资源修改bsfd皮肤资源修改bsfd皮肤资源修改

    janus控件包

    整套janus动态链接库dll:Janus Windows ButtonBar v3 dll Janus Windows Common v3 dll Janus Windows UI v3 dll

    解决ActiveX控件没有在此计算机上注册的问题

    自己研究总结的方法,包括所缺的控件,一般不会缺少的

    Android编程实现将tab选项卡放在屏幕底部的方法

    有点类似IPhone里的布局了,呵呵~(其实后来发现这个应该不是用TAB做的,而是ButtonBar做出来的吧,或者是他重写了TAB?总之不是简单地将TAB放置底端了)。 要放置底端,那么Android自带的例程是不可以做到的(例程...

    NTAutoScript-1.0.0.8

    在ButtonBar中的脚本,需要使用\n来打上回车 4&gt;下面是一个登陆自动处理例子: &gt;&gt;&gt; "# " cd /home/L &gt;&gt;&gt; "# " cd myproject &gt;&gt;&gt; "# " make rebuild 上面例子的意思是,登陆后,定位到自己的开发工程目录,然后执行...

    Total.Commander.v7.55.RC2.Multilingual.WinALL.Cracked-BLiZZARD

    - Configurable button bar and Start menu (User-defined commands) 捋? 圹? to place your frequently used DOS or Windows programs into a 捋? 圹? drop-down menu. The actual directory and/or the file ...

Global site tag (gtag.js) - Google Analytics