What is about a Layout-Manager?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
FGK
New User
New User
Posts: 4
Joined: Sun Oct 02, 2005 12:04 pm

What is about a Layout-Manager?

Post by FGK »

Hello purebasic-team,

I would appreciate if a kind of Layout-Manager could included to Purebasic. in a
similar way like java oder TK/Tcl.
This would help to arange Gadgets more easy and proper especially when the
window will be resized. All Gadgets will maybe resized and rearranged according
the rules/mode of the layout-manager. I know that somewhere here in the forums exsisting
a couple of approaches to realize this - but i would prefer to have it native in purebasic without
additional .pbi or something else.

Thanks
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: What is about a Layout-Manager?

Post by c4s »

+1
There are a few custom solutions floating around the forum which all have their pros and cons. So I'd really like to have a native way of doing this too!
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: What is about a Layout-Manager?

Post by davido »

Will the new Dialog Library help in this respect?
DE AA EB
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: What is about a Layout-Manager?

Post by Fred »

Yes, it's the main purpose of the dialog library.
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: What is about a Layout-Manager?

Post by c4s »

Hm, but I don't want/need/like the overhead of the whole Dialog library (XML, everything as actual plain text etc.) just to be able to use a layout manager. Why not make it work in the classic way too?
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: What is about a Layout-Manager?

Post by Fred »

We though about it, but the library would be a bit hard to use. Still it could be added somewhen.
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: What is about a Layout-Manager?

Post by c4s »

@Alexi
Looks good. Still, what has your yet-to-be-released product to do with this particular feature request? After all this isn't the place to advertise your or any other (commercial) product...
As it has already been said: There are numerous ways of doing it but we want a native solution!
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

Re: What is about a Layout-Manager?

Post by Justin »

If we just had:
FirstChildGadget(gadget)
NextChildGadget(gadget)
Would be straightforward, just binding the #PB_Event_SizeWindow and puting the layout flags in the gadget data. I have already done it, but without those functions requires a lot more work.
Post Reply