CMFCPropertyGridProperty questions - c++

I have a C++ MFC application, and using a CMFCPropertyGridControl with CMFCPropertyGridProperty. Wondering if it's possible to modify the behavior of the control so that the following occurs:
Looking to have the drop down arrow always appear on the CMFCPropertyGridProperty where there are available options to choose. Currently the user is required to double click on the row in order for the drop down arrow to appear on the control. Some users may not be aware there are other options to select.
When a user double clicks on the CMFCPropertyGridProperty with 3 options to choose from, the control changes the currently selected option to the next option. I don't want the option to change to another option unless the user specifically selects a different option using the drop down menu.
For a CMFCPropertyGridProperty with an enabled spin control, the spin control does not display until a user first clicks on the row in the property grid, and then double clicks on the property. I would like the spin control to always display.
Any suggestions or help at all would be greatly appreciated.

Related

Drill Through Once a Specific Field is selected from a Visual

I have a Requirement where User wants to leverage Drill Thorugh option by just selecting the field from a Visual.
We have different ways to drill-through and thats possible only after selecting a field and doing right click or by adding a Button and setting action as drill-through.
But is there a possibility of drill-through directly if a field is selected (and avoid doing right click) or Just click the Button and it should drill though (by default or using any logic).
Inputs will be really Appreciated.
Thanks
To see if there is a possibility of drill-through directly if a field is selected (and avoid doing right click) or Just click the Button and it should drill though (by default or using any logic).

Dynamics ax menu items

As we know Menu Item is of three type (Display,Action & Output). In action type we we write classes which runs in background. Action type menu item is attached to a form but in the drop down the menu item is not appearing, what could be the problem? Is there any property which sets action menu-item to show or not?
Please note that it is a scenario based question. I don't have any code for this to share. Thanks
It could be several things.
First of all, are you testing with a user having System Administrator role? If not, security will apply. Then, if your menu item isn't allowed in one of your roles (menu item in a privilege which is in a duty which is in a role you have), you can't see it.
The other common issue is form personalization. So, in the contextual menu over your form, choose personalize and with buttons on top right, restore the form. You will have to close and reopen the form then.

how to set the rights for placeholder ribbon

beginner question for sitecore about settings the right.
So I have an item is open in the page editor.
The renderings on the page has bunch of icons on the ribbon. One of them called 'select the parent element (element name)'.
In my case when I click on it, I am presented with the placeholder with button 'add here' and the ribbon with some component buttons that a user can use to add the controls.
So, QUESTION:
"how I add access to the button on that ribbon for certain role? Where do I set it up? "
For some certain role that placeholder's ribbon is completely empty, including there is no button 'select the parent element' even though
i know there is a parent element.
thank you very much for help,
HF
Here are the screenshots (no icons on the placeholder ribbon, and the user's rights:
enter image description here
And here is how that looks for the admin:
All the settings for the Page Editor are held in the Core database. So in the Sitecore Desktop, switch to the core database and open up the Content Editor.
Navigate to : /sitecore/content/Applications/WebEdit
This item holds the items that make up the page editor. To edit the ribbon menues, go to:
/sitecore/content/Applications/WebEdit/Ribbons
I don't remember seeing that particular button in the Core database, so this is likely a built-in feature that requires the user to have one of the built-in permissions.
The first thing I would check is that Designing is turned on. Have the user go to the 'View' tab in Page Editor and make sure they have checked the 'Designing' checkbox.
If that doesn't work, it sounds like the user you have does not have design access to the page. I would examine the inherited roles using the User Manager and check if they have the Sitecore Designer role inherited.
It is possible they just need to be provided the correct role in the system so that they can access the buttons.
Have you tried the "Sitecore Client developing role"?
Also, for the blue arrow drop list location, in order for the rendering button to show up in that location, you have to check whether the button in the webedit folder under core database(/sitecore/content/Applications/WebEdit/Default Rendering Buttons). The Type field needs to be "Common" in order to show up in the blue arrow droplist.
Example can be the "Edit related item" (/sitecore/content/Applications/WebEdit/Default Rendering Buttons/Edit related item) shows up in the blue arrow droplist.

MFC - how can i add a spin control to list control

I'm new in MFC, implementing an application where i want to allow user to enter number and for that i want to show spin controls inside list control.
is there any way to do that?
Thanks
When the user clicks in a column, you'll need to dynamically create an edit control with an associated spinner within the extents of the CRect of the column. When the user clicks off the edit control, destroy the edit control. This article should provide some insight.

MFC - How can I disable a list item?

I have a CListCtrl with checkboxes. I want to be able to disable one of the items so that the user cannot click the checkbox. Is this possible? If so, how?
Edit:
Found the specifics on how to hide a checkbox in another question
Need only some rows in a CListCtrl control to have check boxes
Shortly: Not easily possible.
You'll need to sub-class the CListCtrl and implement this behavior on your own or download for example the MFC Grid Control that allows you to do that.
As for the removing check-boxes idea, yes, that might be possible, MSDN:
Version 4.70. Enables check boxes for items in a list-view control. When
set to this style, the control creates
and sets a state image list with two
images using DrawFrameControl. State
image 1 is the unchecked box, and
state image 2 is the checked box.
Setting the state image to zero
removes the check box.