Am Montag, 5. Mai 2008 16:38:40 schrieb Dennis Schridde:
> Am Montag, 5. Mai 2008 15:48:23 schrieb Per Inge Mathisen:
> > If we want something similar to this, I would suggest that we create
> > snap layouts that keep track of which widgets you have added, but also
> > allow you to specify offsets yourself, eg
> >
> > myLayout = newSnapLBHLayout(); // snap to Lower Bottom and lay them
> > out Horizontally
> > myLayout->add( widg1, 10, 0 );
> > myLayout->add( widg2, 10, 0 );
> > myLayout->add( widg3, 10, 0 );  // widg1..3 are put tightly together
> > myLayout->add( widg4, 20, 0 ); // widg4 is pushed slightly apart
>
> Spacers.
Or a bit more verbose:

myLayout = newHBoxLayout();
myLayout->align( left );
myLayout->add( widg1 );
myLayout->add( newSpacer( 10, 0 );
myLayout->add( widg2 );

--Dennis

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to