I'm wondering how I create a drop down menu button using Infragistics? (That is, the user hits a button, a number of options drop down, such as Save, Delete, Print, and the user can select one).
I think I have to use an UltraDropDownButton and an UltraToolbarsManager together somehow, but I cant for the life of me work it out. I think the WinMisc-Basic Features sample has what I'm after, but I'm having trouble working it out from that example.
Can anyone offer a few pointers?
Thanks.
I see now. I think I misunderstood your original post stating the problem. So I apologize for the unneccessary back and forth about the version numbers. This is actually not the problem. I though you were stating that the last of my steps for defining an UltraDropDownButton (where you drop down the list of PopupItems and select the menu) was no longer working. I see now that the UltraDropDownButton was not dropping down the menu at run-time. I have checked and you are correct, it is because the form is an MdiChild. If a drop down button uses a popup menu from a toolbars manager which is merged into an mdi parent's toolbars manager, the drop down button can no longer show the popup. But it should be showing the merged popup menu from the parent's toolbars manager in this case.
Mike Dour"]If you haven't done so already, and if its possible, you should submit that specific project to the support group.
Thanks, I have just done this. In the process of removing all of the irrelevant stuff from my project, I made an important discovery. This issue only occurs if the form is an MdiChild - that is, the MdiParent property of the form is set before it is shown.
contact said: Thanks for the reply. I dont have enough time to go to those lengths in order to display a menu though. I really think you guys should have easier ways of doing these things... An items collection aswell as your fancy infragistics popup menu would have been great.
Thanks for the reply. I dont have enough time to go to those lengths in order to display a menu though. I really think you guys should have easier ways of doing these things... An items collection aswell as your fancy infragistics popup menu would have been great.
I would recommend submitting a feature request for this to the support group: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.
fweeee said: They are all the same version (8.1.20081.1000), except for two - Infragistics.Office2007UI.Design.Support.v8.1.dll (v1.0.0.0) and Infragistics.Licence.dll (v1.0.5005.10)
They are all the same version (8.1.20081.1000), except for two - Infragistics.Office2007UI.Design.Support.v8.1.dll (v1.0.0.0) and Infragistics.Licence.dll (v1.0.5005.10)
The two having different versions are ok. As long as Infragistics2.Win, Infragistics2.Win.Misc, and Infragistics2.Win.UltraWinToolbars have the same version, it isn't the problem. It sounds like there is something else about this one project causing the issue. If you haven't done so already, and if its possible, you should submit that specific project to the support group. I would also let them know which versions of the product are currently installed on your system.
Mike Dour"] You do not need to use a PopupMenuTool from the toolbars assembly as the PopupItem for an UltraDropDownButton. You can use anything that implements the IPopupItem interface. We provide two implementations of this interface: 1) PopupToolBase - Create a drop down from any type of drop down tool in the toolbars assembly. 2) UltraPopupControlContainer - Create a drop down from any control on your form. The UltraPopupControlContainer is defined in Misc, so you will not need to include any other dll, but unfortunately it does not let you specify the items as you would like. Here are some options you can try: 1. Create a custom control that displays items and use that in the UltraPopupControlContainer 2. Derive a class from an existing menu type and implement IPopupItem on you class. Use an instance of the class as the PopupItem in the UltraDropDownButton. Here are some menu types that you can try to derive from: a) System.Window.Forms.ContextMenu b) Infragistics.Win.IGControls.IGContextMenu (a derived ContextMenu in the Win dll) c) Infragistics.Win.ValueList (also in the Win dll)
You do not need to use a PopupMenuTool from the toolbars assembly as the PopupItem for an UltraDropDownButton. You can use anything that implements the IPopupItem interface. We provide two implementations of this interface:
1) PopupToolBase - Create a drop down from any type of drop down tool in the toolbars assembly.
2) UltraPopupControlContainer - Create a drop down from any control on your form.
The UltraPopupControlContainer is defined in Misc, so you will not need to include any other dll, but unfortunately it does not let you specify the items as you would like. Here are some options you can try:
1. Create a custom control that displays items and use that in the UltraPopupControlContainer
2. Derive a class from an existing menu type and implement IPopupItem on you class. Use an instance of the class as the PopupItem in the UltraDropDownButton. Here are some menu types that you can try to derive from:
a) System.Window.Forms.ContextMenu
b) Infragistics.Win.IGControls.IGContextMenu (a derived ContextMenu in the Win dll)
c) Infragistics.Win.ValueList (also in the Win dll)