Following Windows behavior when a combo is closed it has a single line of text and a button on the right. When you open it, it SHOULD be a list the same width as the closed display, including the button. The scroll bar, if it appears, should lie to the right of that.
When you make a normal UltraCombo, it looks very different. The "open" version is sized according to different rules, and in my case typically ends up much smaller than the closed version. When the user resizes, the open version doesn't follow suit.
I'm sure there's a switch for this somewhere, can someone tell me where?
Also, UltraCombos have a number of defaults that make them look very different than the standard windows version. They have headers, lines between the rows, etc. Is there a switch I can throw to make them look like standard windows combos?
If you want the combo to look like the standard combo, then you might want to consider using UltraComboEditor instead of UltraCombo. The whole point of UltraCombo is that it looks like a grid and gives you multiple columns.
To control the width of the dropdown, you use the DropDownWidth property. By default, the dropdown sizes itself to the total width of the visible columns. Check out the DropDownWidth property in the help and I think there are some special value settings, like -1 or -2 that will automatically size the dropdown to the same width as the edit portion of the combo. You will probably also want to adjust the widths of the columns, though, or maybe set AutoFitStyle.
Maury Markowitz said:Also, UltraCombos have a number of defaults that make them look very different than the standard windows version. They have headers, lines between the rows, etc. Is there a switch I can throw to make them look like standard windows combos?
There's no switch, but like I said, you can use UltraComboEditor. Or you can use properties like ColHeadersVisible and BorderStyleRow and BorderStyleCell to turn off the stuff you mentioned.
I need multi-column support. I also need it to look like normal controls.
You might be inclined the suggest that the two comments are at odds with each other, but they are not. Consider the multi-column combos in Access for instance, which indeed support multiple columns AND look like normal combos.
So UltraComboEditor's won't work, and UltraCombos require a considerable amount of work to get them too look like I want. There are literally dozens of settings that need to be changed, located in entirely different parts of the editor. No one has a settings file for this?
I'm probably projecting, but my guess is that most people using them want "a multi-column combo" not "a ultragrid in a combo". Thus, it would seem that offering a SIMPLE way to get WIndows-look-and-feel would be an enormous advantage.
Maury