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
744
GridBagLayoutPanel and editors not resizing
posted

Am I doing something wrong?

I'm adding controls to a GridBagLayoutPanel and setting the fill property on GridBagLayout.GridBagConstraint Fill = both.

For ultragrids and buttons this works great and everything grows when the form is resized.

However, UltraTextEditor and UltraComboEditor don't seem to want to fill the cells ar either runtime or design time. even better if you make the form really small you end up with tiny editors even when the form is made large again...

Any pointers?

Thanks,

 - Anthony

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi Anthony,

    My guess is that the controls that are not sizing have AutoSize (on the control itself) set to true. I beleive the UltraTextEditor has AutoSize set to true by default so that he control sizes it's height based on the font. So you probably just need to set this to false to allow the GridBagLayoutPanel to size it.

Reply Children
No Data