Jump to content
IElite

layering mechanism for nested layouts

Recommended Posts

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;

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

SMS isn't dead, look at their Facebook page

Well, at least that is what they are claiming

Not sure why they don't update the actual SMS Web news page though, it is where their paying customers visit

 

 

As for the forums, yes, they no longer check in here 

 

Budde - Last Active Jul 17 2016
gabr42 - Last Active Apr 18 2016 02:56 PM
Jørn - Last Active Aug 02 2016 07:13 AM

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×