自定义ContextMenu不显示在MX TextArea中
|
试图将我的自定义ContextMenu应用于TextArea已有很长时间了,它将一直显示默认值(复制,粘贴ect ...)。
import mx.events.FlexEvent;
public var nm:NativeMenu = new NativeMenu();
public var cm:ContextMenu = new ContextMenu();
protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
{
cm.clipboardMenu = true;
var cmi:ContextMenuItem = new ContextMenuItem(\"ctest\");
cm.addItem(cmi);
TA.contextMenu = cm;
}
给定的TA是MXML中的mx TextArea
我真的很沮丧!
没有找到相关结果
已邀请:
1 个回复
补蹲农界维
希望这可以帮助!