当用户在控件上右击时会弹出快捷菜单。
When the user right-clicks on the control, the context menu pops up.
当实现快捷菜单控件的时候,我首先选择了上述的创建并显示一个弹出窗口。
While implementing this ContextMenu control, I first used the aforementioned technique and created and displayed a popup window.
按照我的测试,在弹出对像中包含快捷菜单改变了页面的元素树并影响查看源代码窗口,不能显示。
According to my tests, having the context menu in the popup object alters the page's tree of elements and this seems to have repercussions on the View Source window; it just doesn't show up.
在windows程序中,按下esc键或者在菜单区域外点击都可以取消已弹出的快捷菜单。所以你必须在Web中实现这一功能。
In Windows, the standard context menus are dismissed by hitting the Esc key or by clicking anywhere outside the menu region, so you'll need to build this behavior into your Web version.
Eclipse提供了一个方便使用的快捷键可以简化此操作:按ctrl +e组合键,然后将在选项卡行中的右上角显示弹出式菜单并列出所有打开的编辑器(参见图2)。
Eclipse has a nice shortcut that makes this easier: press Ctrl + e, and a pop-up menu appears at upper right in the row of tabs and lists all the open editors (see Figure 2).
浮动的菜单:用户在单击工具栏按钮时,能够弹出一个快捷菜单。
Floating menu: the user click the toolbar button, be able to pop up a shortcut menu.
浮动的菜单:用户在单击工具栏按钮时,能够弹出一个快捷菜单。
Floating menu: the user click the toolbar button, be able to pop up a shortcut menu.
应用推荐