I want a buttonlist (?) that looks and works like the button used in Outlook 2007 next to the phone number fields. The button should drop down a list of options. When you select an option, the button text should change. The list will be dynamic and generated from a database.
I have tried using the ultradropdown button with a popup control container. When I make my popup control a drop down list, the list looks ok, but I am unable to select an option. When I make my popup control an ultracombo box, it looks horrible.
What is the best way to do this? I would like to use databinding for list datasource
Thanks,
Steve
You could use 2 UltraButton controls, the one on the left displaying the text and the one on the right displaying an image (See Appearance.Image property) of the dropdown indicator. When the button on the right is clicked, you could display a PopupMenu with the items you want to make available (I don't think you will be able to bind data to it so you will have to populate the menu yourself). In the Click event for the items, you would set the Text property of the button on the left to the text of the menu item that was clicked.
If you open a contact record in Outlook 2007, in the "Phone Numbers" section, there are four split buttons. If you click on the drop down portion of the button, you get a list of the "phone number types" i.e. "Assistant", "Business", "Business 2", etc... When you select an item from the list the button text changes.
I would like to 1) populate the dropdown list via setting datasource of some control and 2) duplicate the look and feel of the Outlook button as close as possible.
Can you recommend the best control to appear on the dropdown, and any other instructions to help me duplicate the look and feel?
Hi Steve,
I could not find the popup you are referring to in Outlook 2007. Can you tell me more specifically where this is?
If you are using the PopUpControlContainer, then you don't want to use an UltraCombo on the dropdown. You want a control the provides a list like maybe a WinListView or an WinGrid. The PopupControlContainer already provides the popup part - you just need to provide a control that will appear on the dropdown.