如何在 flex 中的 Text Area Cortrol 上打开自定义上下文菜单? [英] How open custom Context Menu on Text Area Cortrol in flex?

查看:26
本文介绍了如何在 flex 中的 Text Area Cortrol 上打开自定义上下文菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何通过右键单击文本区域控件打开自定义菜单,当前默认的粘贴、复制、剪切等菜单已打开.

How i open my custom menu over right click on Text Area control, currently default menue of paste, Copy, Cut etc is opened.

请记住,我想在 Flex 的 TextArea 控件上打开自定义上下文菜单.

Please keep in mind that i want to open custom context menu over TextArea Control of Flex.

推荐答案

MouseEvent.RIGHT_CLICK 是一个新事件,它将在最新的 Flash Player 版本中启用,以前它只能在 Adob​​e Air 桌面中使用.http://www.bytearray.org/?p=3755

MouseEvent.RIGHT_CLICK is a new Event that will be enabled in the newest flash player version previously it was only available in Adobe Air desktop. http://www.bytearray.org/?p=3755

这取决于您想在菜单中显示什么而不是默认设置?

It depends on what you want to show up in the menu instead of the default?

这是一个关于更改或添加到正确的上下文菜单 atm 的非常好的教程 http://www.republicofcode.com/tutorials/flash/as3contextmenu/

Here is a very nice tutorial on changing or adding to the right context menu atm http://www.republicofcode.com/tutorials/flash/as3contextmenu/

这篇关于如何在 flex 中的 Text Area Cortrol 上打开自定义上下文菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆