My Requirement is to have a Menu on a MenuBar in a Window.
I am implementing this by having a hotkey to list down the appropriate Menu.
Say I have 3 Menu
File Edit View
whose hotkey are alt+f, alt+e, alt+v resp.
Now when I press ‘alt+f’ ‘File’ Menu is displayed as expected. But now if I press right arrow key the focus shifts to ‘Edit’ Menubutton but ‘Edit’ Menu is not displayed. Only if I press ‘Enter’ or hotkey ‘Alt+e’ My menu is getting displayed.
Find a sample project attached.
- Run Menu_Test
- Press alt+f.
file Menu is displayed
- Now press right arrow key
Focus shifts to ‘Edit’ MenuButton but but Edit menu is not displayed. Here I want My Edit Menu to be displayed. If i press right arrow key againg my focus shifts to ‘View’ MenuButton but View menu is not displayed.
And another query related to PtFileSelection
I want to open a new file using PtFileSelection. When i select a file from the list using up/down arrow keys, the highlighted file name is not reflected in ‘Name’ section of File Selector. only if I press enter or I click on the file by mouse the name gets reflected.
Open a terminal
‘Alt+f’-> Open ( File Selector opens )
Now using up down arrow keys select files.
Here as and when the file is selected Name of the file does not get reflected in ‘Name’ section. We got click it with mouse to reflect the name in ‘Name’ section of File Selector.