Sizers and LayoutManagers

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 575
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Sizers and LayoutManagers

Post by bembulak »

Hi!

I've searched this subforum, but havn't found anything. Maybe wrong query parameters. :?

Ok, here's my request:

from some other programming languages and IDEs I know of Sizers and Layoutmanagers.
Some popular Toolkits, wich heavily use Sizers and Layoutmanagers are:
Java Swing
Tcl/TK + Tkinter
wxWindows and Subsets (as wxPython)

Lazarus/FPC and Delphi have anchors, as well as .NET does (.NET also has TableLayoutPanel,...).

I'm sure some other toolkits and languages provide the possebility of automatically doing gadget layout too.

I think this would be a huge enhancement and very useful. Especially if you're doing crossplattfrom development, it's nice to let the used GUI-Toolkit take care of placement and size of the gadgets.
Afaik GTK has sizers too.

Manual placement is ok, but most of the time I want to give "orientation" and not absolut position.
This is mostly because GTK and Windows have very different Fontsizes per default and some other issues.

Thanks!
cheers,

bembulak
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

ResizeGadgets

Post by USCode »

Here's a Delphi-like anchor feature I posted here years ago but should still work fine:
http://www.purebasic.fr/english/viewtop ... highlight=

There are others around as well.
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 575
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

There are others around as well.
Yes, but they are closed source or NOT crossplattform.

Thanks - this helps.
cheers,

bembulak
Post Reply