max插件 练习,第一个杰作,抄帮助文档的。

本文详细介绍了一系列用户界面控件的应用及配置方法,包括按钮、滑块、下拉菜单等,并通过具体示例展示了如何创建和组织这些控件。
try(destroyDialog allControls )catch()


rollout subRollout1 "Subrollout" ( )


rollout allControls "User Interface Controls" (


angle theAngle "Angle" width:80 across:2 degrees:45 align:#left 


slider theSlider "Slider:" orient:#vertical


spinner theSpinner "Spinner:"


 


group "Group" (


button theButton "Button" across:2 width:80 align:#left 


checkbutton theCheckbutton "Checkbutton" width:80 align:#right


mapbutton theMapButton "Map Button" width:80 across:2 align:#left 


materialbutton theMatButton "Material Button" width:80 align:#right


pickbutton thePickbutton "Pickbutton:" width:80 )


 


checkbox theCheckbox "Checkbox" across:2 offset:[0,2]


colorpicker theColorpicker "Colorpicker:" 


 


listbox theListbox "Listbox:" items:#("Item 1", "Item 2") \


height:3 width:80 across:2 


 


multilistbox theMLBox "Multilistbox:" items:#("Item 1", "Item 2") \


height:3 width:80 


 


dropdownlist theDDL "DropDownList:" items:#("Item 1", "Item 2") \


width:80 across:2


 


combobox theCombobox "Combobox:" items:#("Item 1", "Item 2") \


height:3 width:80


 


edittext theEdittext "Edittext:"


hyperlink theHyperlink "Hyperlink" url:"http://www.autodesk.com" \


color:red across:2 offset:[10,20]


 


label theLabel "Label" offset:[0,20]


groupBox theGroupbox "Groupbox:" height:40 offset:[0,-40] width:174


 


progressbar theProgressbar "Progressbar:" value:50


 


radiobuttons theRadiobuttons labels:#("Option 1","Option 2")


 


bitmap theBitmap "Bitmap" width:80 height:50 offset:[0,0] \


bitmap:(bitmap 80 50 color:red) align:#left across:2


 


imgTag theImgTag "Bitmap" width:80 height:50 offset:[0,0] \ 


bitmap:(bitmap 80 50 color:green) align:#right 


 


SubRollout theSubrollout "Subrollout" height:50 


curvecontrol theCurvecontrol "Curvecontrol:" height:150 


)


createDialog allControls 200 800


AddSubRollout allControls.theSubrollout subRollout1


转载于:https://my.oschina.net/jieshu/blog/103708

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值