To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=71154 Issue #|71154 Summary|keyboard shortcut not displayed in a submenu created d |ynamically Component|api Version|OOo 2.0.3 Platform|All URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|jsc Reported by|julieng
------- Additional comments from [EMAIL PROTECTED] Fri Nov 3 05:57:33 -0800 2006 ------- I summarize below how to create a new menu and assign a keyboard shortcut. I have attached a OOBasic macro that implements these steps, and shows the bug. a) A new menu can be created dynamically by using the "LayoutManager" property of the frame with a menu bar into which you want to insert it. (there are sample codes for this) b) Create a new popup menu with one item, and attach this menu either at the top-level of the menu bar, or as a submenu line in an existing OO menu. c) Declare a keyboard shortcut (for instance Ctrl+F11) with the same command URL as the one of the menu item of the popup menu. This is done using com::sun::star::ui::XAcceleratorConfiguration. d) The shortcut is not displayed on the menu line of the item (but is effective; Ctrl+F11 triggers the command). When the menu item is inserted at the first level of an existing menu (instead of inside a submenu, itself inserted), the shortcut is correctly displayed. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]