The problem is:
Initialy the sequence of my TColorSpeedButtons is correct.
first there is a MenuButton followed by a TitleLabel, followed by "Bücher", "Verlage", "Benutzer" - ColorSpeedButtons place on a panel
but after resizing the mainform the sequenz of my TColorSpeedButtons changed to
first there is a MenuButton followed by a TitleLabel, followed by "Verlage", "Benutzer", "Bücher" - ColorSpeedButtons place on a panel
Whats wrong with my ControlBuilder-method-chain?
Fritz
This issue is related to the Align property of controls created at runtime.
When you create controls dynamically and set Align := alLeft, the Left property also needs to be assigned with increasing values in the order you want them to appear on the screen.
If all controls have the same Left value (probably 0, since none was specified), the Form will “randomly” decide their display order when resized.
Try setting the Left of the second control as the Left of the first one plus its Width, the Left of the third as the Left of the second plus its Width, and so on.