开发者

Flex/Air datagrid open ContextMenu using mouseDown rather than rightMouseDown?

开发者 https://www.devze.com 2023-01-14 00:24 出处:网络
In a Fl开发者_高级运维ex 4/Air app, I\'ve got an itemrenderer in a column of a Datagrid. I\'d like the item to open the ContextMenu on itemRenderer.mouseDown but it seems to only work with itemRendere

In a Fl开发者_高级运维ex 4/Air app, I've got an itemrenderer in a column of a Datagrid. I'd like the item to open the ContextMenu on itemRenderer.mouseDown but it seems to only work with itemRenderer.rightMouseDown. Any ideas as to why? and/or a good workaround?

thnx in advance.


To answer my own question, a class can force a contextmenu to open by calling contextMenu.display(stage, x, y);


I like to call it UI Precedent.

Why do you want to change the common convention that users have already been trained to learn?

0

精彩评论

暂无评论...
验证码 换一张
取 消