I just created a new VCL application and placed the following controls on the form in this order:
- MainMenu
- ToolBar
- StatusBar
The controls appear in the TForm class in the order I added them to the form. When I compare the TForm class to the DFM the controls are in a different order.
Class:
type
TForm5 = class(TForm)
MainMenu1: TMainMenu;
ToolBar1: TToolBar;
StatusBar1: TStatusBar;
private
{ Private declarations }
public
{ Public declarations }
end;
DFM (properties removed for illustration purposes)
object Form5: TForm5
object ToolBar1: TToolBar
end
object StatusBar1: TStatusBar
end
object MainMenu1: TMainMenu
end
end
I'd like to order the controls in the class definition so they match the DFM file. Is there an option within the IDE to do this?