Hi
Im not sure if the following is possible. I currently have a popup menu which can have a single optiion or many. For example I have a "Create Record" menu. In some situations (driven by data) there are many different ways to create a record so we have "create record" as a popup with the options. I have made this a segmented popup so that a click of the popup menu means a selection of the first button in the popup's tools collection.
That works well. In many situations there is only a single option and it is something generic. For example the single button tool under "Create Record" is "Create Record". I would like to make this single button invisible so that the "Create Record" popup menu looks and behaves like a button. I can get this working nicely as long as I set Visible to FALSE on the button and the button is enabled.
I have made the popup segmented so this works and stopped the dropdown arrow from doing anything with a beforetooldropdown event. How do I get rid of the popup arrow altogether? I want to be able to get rid of it in these sutuations. Is this possible with a drawfilter? Settings the dropdownarrowstyle to None seems to imply Standard and anythig other than segmented does not raise a toolclick event on the popup which I need to emulate a button.
Any help is greatly appreciated.
Thanks
Darren
Ive changed your example to include your popup which demonstrates my issue. Please open the child form and right-click on the ultrabutton. A popup will show wth an embedded popup menu and a button. I need to get rid of the arrow on this popup menu.
My arrows do disappear on the ribbon as stated. They do not disappear on a popup menu configured as a context popup on a control.
I'll make some amendments and get back to you.
Hello Darren,
I started to put together a sample that includes an MDIParent/Child scenario. The arrows stay hidden with the creation filter therefore I would like for you to modify the sample to reproduce the behavior your are having issues with. Let me know if this is possible.
When you run the sample you will see a button to "Add child form", this will create a new ribbon tab that includes a PopupMenu tool.
Its really difficult to produce a working sample that I can post without permission. I'll try and describe it all as best I can.
I have a mdi parent form called "mdiparent". This has a ribbon control. The file menu (applicationmenu2010) has 3 tools that are popupmenu tools. These tools are called mnunew, mnuopen and mnuview.
A child form is docked inside the mdiparent form as an mdi child. We are using the ultratabbedmdimanager and hence my child form appears as a tab.
The child form also has a ribbon control with an ultragrid which is docked fully. The ribbon control on this form has a popup menu called mnulist which contains 3 other popup menus called mnunew, mnuopen and mnuview. The enabled state of these tools is merged with the parent on the file menu nicely.
I have added the mnulist popup menu to the ultragrid as its context menu using setcontextmenuultra.
mnunew, mnuopen and mnuview are segmented popups. I want to get rid of the arrow in some situations and also the segmented seperator line if possible. The seperator line and the arrow need to be made invisible on the file menu of the mdi parent and also the context menu of the grid.
HTH
Darren,
When you refer to a "popup menuattached to a grid control" are you talking about a context menu? Or do you mean a dropdown list in a grid cell? Could you put together a simple sample application that I could work with so that I would know exactly what you have? These are probably different UIElements so we need to set up a different CreationFilter for this.