ComboBox and its family

I like that if I set

  • MyDBEdit.align := alTop or alBottom
  • MyDBEdit.MaxWidth := 200;
    then when expanding the form, MyDBEdit does not expand beyond that value
    If I apply the same to TAdvComboBox, the result is that the width of the form cannot be changed. This is clearly a bug.
    I would very much like it if the CombBox would behave as if Edit.
    I like that if I set
    MyDBEdit.align := alTop or alBottom
    MyDBEdit.MaxWidth := 200;
    then when expanding the form, MyDBEdit does not expand beyond that value
    If I apply the same to TAdvComboBox, the result is that the width of the form cannot be changed. This is clearly a bug.
    I would very much like it if the CombBox would behave as if Edit.

AdvComboBox does not have a MaxWidth property and neither the standard VCL TEdit or TDBEdit.
I do not know as such what you refer to here as standard there is no MawWidth property for these controls.

Interesting. If I place the components:

  • directly on the form, they block the form
  • on the TAdvPanel, they work as I described
    In the images, both components have Constraints.MaxWidth set to 250
    I only found this out now. So I don't want anything anymore
    Thank you for the response. Thanks to it I have clarified it. Maybe also someone else will welcome such behavior.
    2023 03 07 16 56 54 Pokusy_-Delphi_11-_MainForm_Built
    2023 03 07 16 57 14 Pokusy_-Delphi_11-_MainForm_Built