I am working in an MFC windows application. I am using Grid control with some icons and its properties are displaying with MFC Property Grid Control ( CMFCPropertyGridCtrl ). I need to implement tab navigation. I i am in some icon (let us assume "Star1") and when I press tab key it should go to its properties control ( MFC Property grid control) and focus on any field or group name.
I did try to capture keyboard events in PretranslateMessage(). but needs how to set focus on that specific field or group name?
Related
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."
I am having a problem where on some of my forms my menu bar is covering up my controls
But there are also some instances where my controls automatically line up below my menu
What do I need to do in my forms so that my controls always line up below my menu?
I discovered that the ability of a control to adjust its location to below the menu requires the control to be dock to the form. If you are using non-docked controls you need to place them in side a panel and then dock that panel to the form.
We have are getting a strange behavior with the radio groups in our templates. Each of the radio groups is required, however, when a radio button from a group is selected, the next radio button (not the next group) gets focus. This will confuse our users as they will think they have to click each radio. Moreover, it would be helpful if an entire group could have focus as opposed to individual radios.
Is there a way to give the group focus as opposed to the individual radio?
The manner in which Radio Buttons (or any other type of input element) get focus in the Signing Session UI is not configurable via the API, nor is it configurable via the DocuSign web console.
we can change this option from Docusign settings.
Preferences->Account Administration->Features->signing auto-navigation rule-> Navigate Blank Required Fields
This will move focus to next field when a radio button is selected from Radio group.
I have an old VB6 application that uses the Tag property to Enable / Disable the Main Menu items in the (startup) mdiForm. I see where the program reads the Menu Tag Property and compares it to the User's security (a string). If the Tag matches the User's security string then the menu item is made Visible and Enabled.
No where in the VB6 code or in the VB6 Menu Editor do I see how to initially set the Tag property for a menu item. The call to enable the User's menu items is the 5th line of code in the MDIForm_Load() event code, so there is not much else that can run before this call.
Does anybody know how to initially set the Tag property for a main menu drop down items?
Try clicking to select the menu item you are interested in, then the Tag property will be available in the properties window. You can also highlight the form that contains the menus in the project explorer and select the menu from the controls drop down.
Is it possible to put a menu in a dialog based application? How?
Yes, it is possible to add menu to the dialog based applications. You can create the menu as a resource and attach the same to the dialog.
If you open the properties for dialog, you can see a Menu as a property for which you can assign an existing Menu ID.
Steps:
Right click on Resource View and
insert a new Menu. (Menu with some ID-- lets say IDR_MENU1 -- is created)
Configure the menu to add required
items in menu and provide the ID,
Caption to the menu items.
Right click on Dialog and open
Properties...
From Menu Combobox, select the ID of
the required menu ( here IDR_MENU1)
You can add a menu resource to a dialog application, but you haven't said which version of Visual Studio you're using so details are hard to provide. You should know that because CDialog isn't derived from CFrameWnd, update routing won't work - you need to read this article for the details.
That article includes instruction for adding the menu if you're using a version of Visual Studio post-VC6, which you probably are - read the "more information" section further down the article for that.
See DLGCBR32 MFC sample in the MSDN.