FLTK logo

Re: [fltk.general] resizable question

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: resizable question Greg Ercolano Nov 21, 2020  
 
On 2020-11-20 16:10, Greg Ercolano wrote:
I could see making a fully flexible packing widget like an HTML table..


    I should probably review this TableBox widget in our Links pages, which sounds like it's exactly that..


TableBox

The TableBox manages a group of widgets that are arranged in rows and columns, making it easy to align many widgets next to each other [..]The whole project was inspired by HTML table and GTK+ table widget.



    I did research that a bit; unfortunately that widget is fltk2.

    I was unable to get the old fltk2 project to build on my machine, so I couldn't explore it.
    But I did make a
very rough port that works with fltk 1.x, tossing the result on github
    in case anyone wants to try to fix it/take it further with a fork.

    The TableBox demo in my port runs and very interesting resizing behavior happens, but I don't
    think I got it fully working as intended. I can't remember fully how fltk2's layout() system
    worked, so it could be a problem with how I ported that.

    I think layout() was called on first drawing to reposition/size the widgets, and then
    Ialso called during any kind of resize().  I emulated that in the port, since TableBox
    overloads layout() to do its work, but not sure I got all that right; didn't have time
    to really dig in.

--
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/67d0e662-dbc3-b3cb-7af9-f1e8be2f9b34%40seriss.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'.