I'm having troubles using WinMenuSelectItem to select a menu option when I have to go through more than two levels of a menu.
The menu item I'm currently working with has this set up:
Menu Level 1
(click on item on Menu Level 1 to access) Menu Level 2
(hover over item on Menu Level 2 to access) Menu Level 3
I am able to use WinMenuSelectItem to do this operation just fine:
Menu Level 1
(click on item on Menu Level 1 to access) Menu Level 2
select item on Menu Level 2
I am unable to use WinMenuSelectItem to perform the following operation:
Menu Level 1
(click on item on Menu Level 1 to access) Menu Level 2
(hover over item on Menu Level 2 to access) Menu Level 3
select item on Menu Level 3
In my case, the text was something like "Open&&File".
It was actually "Open &File". The reason for this is that the menus are supposed to be easily accessible by a keyboard. You can press alt (to open the menu) and then the 'f' key, and it will act as if you had pressed 'Open File'.
The ampersand before the character here indicates the preferred shortcut. This is because it's possible to have multiple menus starting with the same characters. Example:
Open file
Open directory
Exit
In this case, the first two menu items are both given the shortcut 'o' for 'Open'. This is inconvenient for people who use your application a lot and wish to have simple shortcuts to do common operations. To give the menu items different shortcuts, you write them down like this:
Open &file
Open &directory
E&xit
It works the same for every menu item. Even for the top level menus.
Try it on notepad! Alt + F (&File) + x (E&xit).
Related
How can I change project view on eclipse from flat to hierarchical only using Linux terminal command without right click on the menu?
Although there is no command line option for this, it is possible to switch the presention between flat and hierarchical using only the keyboard, if you are already in the Project Explorer view.
Press Ctrl+F10 to display the view menu. Use the arrow keys to highlight the menu item you want (in this case, the Presentation menu item is the first, so just one press on the down arrow), then use the right arrow to show the sub-menu for that item. From there, you can either use the hot key (underlined in the submenu, so "f" for "Flat, "h" for "Hierarchical) or use the up and down arrow keys, then hit Enter when on the item you want.
Clicking ALT + Ins shows a window where we can select what we want to add.
I was wondering, is there a way to change the order of these elements?
In particular, since almost all new classes are in Kotlin, I'd like to have Kotlin as first option, so I won't have to click the down arrow to select it.
It works as in IntelliJ IDEA:
Right-click the main toolbar (that's where you can find Run/Debug buttons etc)
Choose "Customize Menus and Toolbars"
Go into "Navigation Bar" -> "New" (Other views might be desired, such as Projects)
Change ordering as you prefer
Restart might be needed
I am dveloping an app in Oracle APEX 5. All of my pages have menu entry on the left-side menu, but the order of the pages in menu is different to the page numbers. Is there a way how to reorder pages in the menu?
Assuming your menu on the left is a standard APEX Universal Theme navigation menu, you do it like this:
Go to Shared Components
Click on Navigation Menu (under Navigation heading)
Click on the menu name
You should now see all the menu options for that menu, which have a sequence number. Either edit the individual options or use Grid Edit and change the sequence numbers to give the order you want.
In my MFC application, which is a modeless dialog by itself, has a Tab control along with many other controls. And Tab control has two tabs, and dialogs are inserted into those.
This tab control is preceded and followed by other controls in the tabbing order. And when tab key gets to the tab control, It doesn't go into the dialogs inside tab, instead it moves to the next control in the application. I want that to go into the tab dialog and navigate through controls inside it.
At the moment, Tab key visits these dialogs inside tabs after visiting all controls in my application(modeless dialog).
How do I or where do I set tab order such that the tab key goes into the tab control dialogs ?
Research the WS_EX_CONTROLPARENT window style. MSDN:
"If this style is specified, the dialog manager recurses into children of this window when performing navigation operations such as handling the TAB key, an arrow key, or a keyboard mnemonic."
What is the difference between a keyboard accelerator and a shortcut key?
John - I don't believe that is correct.
MSDN defines menus as having:
'Menu access keys' - the underlined letters in the menu item name.
'Menu shortcut keys' - the key combination to the right of the menu item.
It is menu shortcut keys (text to the right of the menu) that are identified as synonymous with keyboard accelerators, not menu access keys - see paragraph on Menu Shortcut Keys in the 'about menus' MSDN page - it is this section directs towards information on Keyboard accelerators, not the section on Menu Access Keys.
As far as I am concerned a keyboard accelerator is a 'shortcut key'. They may be used regardless of the visibility of a menu, and are only included in the menu as a reference for the user and a way for the user to pick up on shortcuts for menu items that they may regularly use. Hence they may be defined without being displayed in the menu at all.
See MSDN page on Keyboard Accelerators:
Typically, users rely on an
application's menus to learn the
command set and then switch over to
using accelerators as they become more
proficient with the application.
http://msdn.microsoft.com/en-us/library/ms646335(v=VS.85).aspx
Although accelerators typically
generate commands that exist as menu
items, they can also generate commands
that have no equivalent menu items.
http://msdn.microsoft.com/en-us/library/ms646335(v=VS.85).aspx
For Windows, a keyboard accelerator is represented by an underlined letter on a button, menu or other label:
keyboard accelerator http://content.screencast.com/users/TreefortJohn/folders/Jing/media/70d5002f-5832-448a-9379-256b7a8c4fd7/2009-01-12_2304.png
On recent versions of Windows, they are hidden until you press the Alt key. Then you can hit that letter to select the menu, button or other input control.
A shortcut key typically does not have a visual representation, except for when they're listed in menus. Ctrl-C, Ctrl-X, Ctrl-V are examples of common shortcut keys, which you can see listed next to their respective menu items.
About Keyboard Accelerators