Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
805
Another noobish question: how do I get the combo's "open" to be the same size as the "closed"
posted

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?

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    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.

     

Children