I've got a very peculiar problem I was wondering if anyone else has seen
I'm using Infragistics for WinForms, V15, so a little older version.
I've got a form with an Ultratoolbar with several UltraDropDownButtons in it (contained in ControlContainerTool objects), as well as a couple of plain ol' UltraButton objects.
sporadically, when this form is displayed, the UltraDropDownButtons won't paint, but the Ultrabuttons do. All of them have visible=true
If I click the window title bar and simply drag it a little, all the missing buttons suddenly paint and work normal. But if I click where the button SHOULD be when it has not painted, nothing happens, as if the drop down button isn't event there.
I've seen several posts that indicate the Dropdown button doesn't really act like or draw like the normal UltraButton. And since it's not a normal toolbar object and has to be hosted in a ontrolContainerTool, I'm wondering if there's something about that that can sometimes lead to this kind of failure
Out of curiosity, why use an UltraDropDownButton - or for that matter, an UltraButton - on a toolbar? Why not just use the built-in tools?
Hi Mike
I was asking myself the same question
I mispoke on the UltraButton, those two controls (the two that are actually rendering properly consistently) are "ButtonTools".
I tried several different things but didn't see any toolbar tool that worked quite the same as the UltraDropDownButton.
I even tried using, say a button and a dropdownmenutool, which is +close+ but still not the same.Have I maybe missed a tool (or a config option for a tool)?
Well.. if memory serves, the UltraDropDownButton control drops down an IPopupItem. There are only two built-in implementations of this interface - a PopupMenuTool or the UltraPopupControlContainer.
So for the former, you could simply replace the ControlContainerTool/UltraDropDownButton with a PopupMenuTool.
For the latter, you would simply use a PopupControlContainer tool.
Either way, I don't see any obvious reason why using an UltraDropDownButton would be advantageous. Perhaps the UltraDropDownButton has some obscure functionality that the tools do not, but if so, I can't think of what it might be. Of course, we'd still like to know why the tools are not drawing or positioning correctly. That might be a bug. But you might want to consider replacing those with better tools, anyway. :)
Hi Darin,
Please let me know how you choose to proceed with this issue and I will assist you however I can.
HI Mike
I'm tending toward Mike Saltzman's suggestion to just get rid of the use of the UltraDropDownButton and replace with toolbar tools. Still waiting to hear back from management over how they want to proceed.
I'll update when I find out more.
Thanks again!
Darin