自定义“上下文菜单"在弹性 [英] Custom "context menu" in flex
本文介绍了自定义“上下文菜单"在弹性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想添加一个带有行分隔符的自定义上下文菜单,但不知道怎么做.我需要什么:
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:
这篇关于自定义“上下文菜单"在弹性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文