Menu

#30 Layoutmanager like Java GridBagLayout

Future_Release
open
Davis
5
2008-12-16
2008-12-15
Anonymous
No

--

Discussion

  • Davis

    Davis - 2008-12-15

    This is something that I have been thinking about on and off for a while now. There are things in dlib right now that help you place widgets in a window, the widget_group for instance. Also, doing a lot of simple things like getting bunch of buttons in a row is easy to do by saying something like:

    button1.set_pos(0,0);
    button2.set_pos(button1.right()+5,0);
    button3.set_pos(button2.right()+5,0);
    button4.set_pos(button3.right()+5,0);
    ...

    What sort of scenarios do you want to use something like the GridBagLayout for? For me, stuff like the above code is usually easier than dealing with a Java style layout manager (I think).

    I think something similar so the sizers in wxWidgets might be good to have (http://docs.wxwidgets.org/stable/wx_sizeroverview.html).

    -Davis

     
  • Davis

    Davis - 2008-12-16
    • milestone: --> Future_Release
     

Log in to post a comment.