Page 1 of 1
What is about a Layout-Manager?
Posted: Fri May 27, 2011 10:04 pm
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
Re: What is about a Layout-Manager?
Posted: Fri Jul 26, 2013 11:21 am
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!
Re: What is about a Layout-Manager?
Posted: Fri Jul 26, 2013 11:27 am
by davido
Will the new Dialog Library help in this respect?
Re: What is about a Layout-Manager?
Posted: Fri Jul 26, 2013 11:47 am
by Fred
Yes, it's the main purpose of the dialog library.
Re: What is about a Layout-Manager?
Posted: Fri Jul 26, 2013 12:02 pm
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?
Re: What is about a Layout-Manager?
Posted: Fri Jul 26, 2013 1:01 pm
by Fred
We though about it, but the library would be a bit hard to use. Still it could be added somewhen.
Re: What is about a Layout-Manager?
Posted: Sat Jul 27, 2013 11:40 pm
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!
Re: What is about a Layout-Manager?
Posted: Sun Jul 28, 2013 1:10 pm
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.