Is it possible to make the UltraDropDownButton look like an UltraButton with the UseOSThemes set to true?
We have a form with several buttons on it: all UltraButtons except for one UltraDropDownButton. Obviously we would like all of the buttons to look the same but it seems that the default look for the UltraDropDownButton using OSThemes is a lot different than the stock UltraButton.
Any ideas?
Thanks,
-David
Hi David,
This has come up before, but I don't think you can make the buttons looks the same. You should Submit a feature request to Infragistics
That is too bad. I submitted a feature request.
In the meantime, I guess it would be possible to have a popup menu show right about a regular UltraButton when you click it. Any other ideas?
Well, you can manually show the popupmenu yourself. If you are using UltraToolBarsManager, there's a method like ShowPopupMenu and you can specify the menu and (I beleive) the location. So you could respond to a click on the button by popping up the menu.
dpalau said:Getting a new Point() from the coordinates of the button doesn't work.
I'm sure this works, it's just that the button coordinates you are using are probably container coords and the ShowPopup method takes screen coords. So you just have to use button.PointToScreen to convert them.
Thanks. The method is ShowPopup.
I wonder how you get it to show up in the right location? I would like to have it show up directly above the button with the bottom of the popup just above the button and then have their X-position be the same.
Getting a new Point() from the coordinates of the button doesn't work. Is there some sort of relative top and left position I can derive from the button? I assume I can get the height of the toolbar and then adjust the Y coordinate appropriately.