Tag Archives: Air右键

AIR: NativeMenu Separator, 菜单分割线

菜单中的分割线: 通过将 NativeMenuItem 构造函数中的 isSeparator 属性设置为 true 创建一条分隔线。

_menu = new NativeMenu();
_menuAddTopOU = new NativeMenuItem(RM.getString(BUND

Posted in AIR | Tagged , , , | Leave a comment

使用ActionScript建立DataGrid, 添加右键, 增加列, 并设定列的ItemRenderer

很多时候为了获得对组件的灵活控制, 不得不放弃MXML, 直接使用ActionScript.

Posted in ActionScript | Tagged , , , , | 3 Comments

AIR中通过右键直接选定基于LIST容器[DataGrid, List, Tree等]的数据 – Select List item with mouse right-click

在很多情况下, 我们在DataGrid, List, Tree等容器中使用右键, 进行如修改, 删除 某行的操作. 问题是如果该容器初始状态下直接进行右键点击时, 并不能选定任何数据. 通过监听右键菜单SELECT事件, 获取到当前右键所击位置的Index, 并将之赋值给DataGrid或其他容器的SelectIndex, 完成点击操作

Posted in AIR | Tagged , , , , , | 2 Comments