定制"右键菜单"在柔性 [英] Custom "context menu" in flex
本文介绍了定制"右键菜单"在柔性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想添加自定义上下文菜单行分隔符,但不能真正弄清楚如何。我需要的:
< MX:列表ID =treeContextFile可见=假WIDTH =233verticalScrollPolicy =关闭includeInLayout =假>
< MX:dataProvider中>
< MX:阵列>
< MX:字符串>开放< / MX:字符串>
<水平线这里>
< MX:字符串>切< / MX:字符串>
< MX:字符串>复制< / MX:字符串>
< MX:字符串>的糊; / MX:字符串>
<水平线这里>
< MX:字符串>重命名< / MX:字符串>
< MX:字符串>删除< / MX:字符串>
<水平线这里>
< MX:字符串>属性< / MX:字符串>
< / MX:阵列>
< / MX:dataProvider中>
< / MX:列表>
解决方案
下面是与像你所需要的一个例子的博客:
<一个href="http://blog.flexexamples.com/2008/10/02/adding-a-horizontal-separator-to-a-flex-popupbutton-controls-pop-up-menu-redux/#more-816" rel="nofollow">http://blog.flexexamples.com/2008/10/02/adding-a-horizontal-separator-to-a-flex-popupbutton-controls-pop-up-menu-redux/#more-816
I would like to add a custom context menu with line separators, but can't really figure out how. What I need:
<mx:List id="treeContextFile" visible="false" width="233" verticalScrollPolicy="off" includeInLayout="false">
<mx:dataProvider>
<mx:Array >
<mx:String>Open</mx:String>
<horizontal line here >
<mx:String>Cut</mx:String>
<mx:String>Copy</mx:String>
<mx:String>Paste</mx:String>
<horizontal line here >
<mx:String>Rename</mx:String>
<mx:String>Delete</mx:String>
<horizontal line here >
<mx:String>Properties</mx:String>
</mx:Array>
</mx:dataProvider>
</mx:List>
解决方案
Here's a blog with an example like what you are needing:
这篇关于定制&QUOT;右键菜单&QUOT;在柔性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文