FLTK logo

Re: [fltk.general] How to achieve a spaced out layout

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: How to achieve a spaced out layout imm Nov 30, 2021  
 
On Tue, 30 Nov 2021, 13:47 'Mark' wrote:
I want to have a row of buttons like this:

[New] [Options] ...gap... [About] [Help] ...gap... [Quit]

Where the first two are aligned to the left of the parent window, the middle two are in the middle of the row and the last one is on the right. And of course I want them to keep these relative positions when the window is resized.

Can this be done with pack or flex?


It's easier to do this with the fltk default layout mechanism, actually.

The problem with that is that, until you get your head around how it works, it's *really hard* to figure out.

I'm not keen on pack, FWIW. 

If I find time I'll post an illustration later...

--
Ian
From my Fairphone FP3

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/CAGFM6dZXPVjowFs_315ASpP4N1_Yfx%2B3QFGSTT3WYDU7rNE2EQ%40mail.gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.