Search the Community
Showing results for tags 'Layers'.
Found 1 result
I would love to see some kind of improvement for nesting layouts. i.e. layouts that have controls in them and layouts with controls in them e,g, Layer 1 Header layout , Main Body layout , Footer layout Layer 2 - Header layout Image, Label, buttons Layer 2 - Content layout Labels, Edits, buttons Layer 2 - Footer layout Image, navigation links (labels) To implement this requires a lot of code Maybe add Layers? Or Maybe allow a Layout to include another Layout as well as controls e.g. Laying out the three layers above //layer1 fLayout:= Layout.Client( [Layout.Top(fLayer2HeaderLayout), Layout.Client(fLayer2ContentLayout), Layout.Bottom(fLayer2FooterLayout)] ); as of now, you have to write too much code, to create all the layouts and then in the resize, you only have to make one call as well if assigned(FLayout) then FLayout.Resize(self); instead of if Assigned(fLayer1Layout) then begin //resize layer 1 fLayer1Layout.Resize(self); //resize layer 2 header panel if Assigned(fLayer2HeaderLayout) then fLayer2HeaderLayout.Resize(fLayer1Header); //resize layer 2 footer panel if Assigned(fLayer2FooterLayout) then fLayer2FooterLayout.Resize(fLayer1Footer); //resize layer 2 main panel if Assigned(fLayer2MainLayout) then fLayer2MainLayout.Resize(fLayer1Main); end;