Add radio button to existing group - MFC - visual-c++

I am trying to add a new radio button to an existing group box (MFC application). Already there are four buttons. I have added new radio button to this group but application is treating it as different group and does not synchronize with other buttons. I have check GROUP property which is set to false.
Any help would be appreciated...

You are correct that you need to use the 'Group' property but in conjuntion with Tab Order (from the menu) .
According to the Tab Order, the first button that has the Group property checked is deemed to be the first control in the group, the following controls are deemed to be part of the Group. A new Group is started when a control with Group checked is found.
Your new button is probably not in the right Tab Order and therefore not part of the Group.
Hope that helps
Also refer this link:
http://www.functionx.com/visualc/controls/radiobutton.htm

Related

Extending the "Files" menu

I have a process that involves extending the "Files" menu that is located on (most) acumatica pages (next to notes and activities in the top right)
I would like to add two columns to the table that appears in the smartpanel.
I have been looking for the source code/data behind this smart panel and I cant seem to find it, is it tied into SM202520 (search in files)? Can it be extended?
Am I better off just adding a PXAction button to the 3 or 4 pages I want my extended "files" menu to be?
Thanks
There's no DataView bound to that dialog, you can verify that by using inspect element shortcut key CTL+ALT+CLICK on a grid column header:
In order to be customized the grid needs to be bound to a DataView which inspect element reveals it is not. The lack of DataView binding is by design and therefore that dialog can't be customized.
A grid that can be customized will show the View Name property:

Material Design - one search field, two available actions

Need a tip for design. Now we have a one search field, with 2 actions - where you can search for a role or a user
If you search for a user you can copy his (role) assignments OR
If you search for a role you can add the selected role.
Generally, UI looks now like this:
Copy user's assignments
Add role
How can this UI be simplified for the user?
I think you should add a menu to the Appbar, similar to the Menus section of the Material Design standard for Layout Structure:
The images above are pulled from the standard, but could be used in your case.
Ditch the radio buttons and present the current search context with its default placeholder text in the search field. Offer a button in the Appbar that presents a modal Menu.
When the menu is presented, offer the available search contexts to the user, allowing them to switch. Upon selection, re-render the search field with new placeholder text. It should probably clear anything that was previously entered.
If for some reason the set of contexts is limited to one (permissions, security, or another reason), present that option in the placeholder text and hide the menu button.

TestComplete Menu Item

I am new to TestComplete. I have a question and it may be something impossible or too simple. I have a toolbar containg File, Edit, View, etc. I want to get one item (eg. Edit) to mapped objects. I can get the whole toolbar only. I want to simulate a click event on Edit. How can I do this?
As a rule, TestComplete does not work with menu items as with separate objects. It works with a menu object or even only with a menu's parent object and you can specify which item to select by passing the caption of this item to the corresponding method of a menu object. For example:
objMenu.Click("Edit|Paste");
// or
parent.MainMenu("Edit|Paste");
Please find more details on how TestComplete interacts with menus in the Working With Menus help topic.

in chrome extension how can i have multiple groups of radio buttons in context menu

I know how to make radio buttons in context menu using chrome extension in chrome. But what i dont get is how would i group them. So certain radio elements act as one set and only one of them can get selected. But doing so doesn't affect elements in other sets(group).
All you get to define when creating an item in context menu is its id, type, and parent and other stuff that become even more irrelevant.
I'd appreciate help a lot. thanks.
The sample code i am reading from is here :
http://developer.chrome.com/extensions/examples/api/contextMenus/event_page/sample.js
Api reference for context menu: http://developer.chrome.com/extensions/contextMenus.html#method-create
Consecutive radio buttons will belong to the same group. If there is any other type of menu item in between, radio buttons will belong to different groups. For instance:
chrome.contextMenus.create({type:'radio', title:'group1 r1'});
chrome.contextMenus.create({type:'radio', title:'group1 r2'});
chrome.contextMenus.create({type:'separator'});
chrome.contextMenus.create({type:'radio', title:'group2 r1'});
chrome.contextMenus.create({type:'radio', title:'group2 r2'});

Hide CRM form left hand side navigation item

I have my account entity linked to a custom entity called inspections, I only want these inspections to be created for accounts of a certain type. So when it isn't that type I want the left hand navigation to this entity to be hidden away. I've seen some code that says will hide it away, as long as you have the navID of the item.
I've had a crack at hiding it using what i thought could be the ID but it hasn't worked, so I'm wondering if anyone knows how to get this ID, or if there is another way to do this?
The code I'm using to hide the navigation is below:
var navitem = Xrm.Page.ui.navigation.items.get("nav_ts_inspection");
if (navitem != null)
{
navitem.setVisible(false);
}
Load the form
Press F12 to show IE Developer's Toolbar
From here you can use CTRL+F to search for the display name of the item you'd like to hide. This will give you a link that is generated. The Id of this element is what you need to use to show/hide the link.
As an example, you can see results of searching for 'Sub Accounts' on the Account screen for an installation I am working on at the moment. The Id can be seen and is 'navSubAct'
Changes by traversing DOM and manually hide an area is not officially supported.
Luckily if you are on CRM 2011, you can go to
Settings > Customization Or open the solution.
Select the entity > Forms. Inside the Form editor window, open the Form Properties of the entity.
Go to Display Tab and untick "Show navigation items" checkbox.
Finally do not forget to Publish your changes.
Use the relationshipname to hide folder in navigation like this:
If you have folder with the relationship name: ts_inspection
Use this for ID: navts_inspection
So otherwise the same as above, but lose the extra underscore (_) between nav and ts.
var navitem = Xrm.Page.ui.navigation.items.get("navts_inspection");
If you want to hide particular navigation section from the FORM then remove all the links from that section and publish it. That section will not be visible anymore.
If you want to just remove Navigation Pane from FORM, then go to 'Display' tab of form and mark as 'Do Not Show' and then publish it.

Resources