[Bf-committers] UI layout engine

Joe Eagar joeedh at gmail.com
Tue Nov 27 05:42:04 CET 2007


As an aside, swing has a GridBag layout manager that lets you specify ui 
elements in a grid, but also to merge cells to together to allow a 
greater degree of flexibility.  I havn't tried it yet, but it sounds 
useful; maybe a similar approach could be used for blender.

Also one concept in swing is the use of subframes within a panel 
(actually its subpanels within a frame using their terminology); that 
should definitely be supported.  We need rock-solid 
container-within-container-within-container support.

Joe

Alexander Ewering wrote:
> On Mon, 26 Nov 2007, Martin Poirier wrote:
>
>   
>> If that can automatically calculate optimum button
>> width depending on their content, great, but I think
>> I'd prefer Alex's relative sizing/positioning idea
>> better.
>>     
>
> The uiBlockBeginHRow() and VRow functions imply automatic layout -- as I
> said, uiDefBut() calls should NOT take any coordinates AT ALL then - they
> automatically get stuffed into their respective containers (rows, columns,
> or maybe a "grid" container).
>
> Alexander Ewering
>
>
> [ i n s t i n c t i v e . ]   http://www.instinctive.de
>
> Zur Waldeshoehe 6                    Tel.: 02393-220558
> 59846 Sundern                         Fax: 02393-220559
> Germany                xx-mail: xx-mail.com/instinctive
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>
>   



More information about the Bf-committers mailing list