A small comment with regard to the Spec booklet: Some chapters have not yet been worked on, but the layout chapter is done so I heartily recommend it!
-- Does this mail seem too brief? Sorry for that, I don’t mean to be rude! Please see http://emailcharter.org <http://emailcharter.org/> . Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile > On Aug 17, 2016, at 16:10, Peter Uhnák <i.uh...@gmail.com> wrote: > > Hi, > > you normally control the (relative) sizes through the layout, e.g. > > ui := DynamicComposableModel new. > > ui instantiateModels: #(text TextInputFieldModel btn1 ButtonModel btn2 > ButtonModel). > > ui btn1 label: 'Button 1'. > ui btn2 label: 'Button 2'. > > layout := SpecColumnLayout composed > newRow: [ :row | > row > add: #text; > add: #btn1 width: 60; > add: #btn2 width: 60 > ] height: ComposableModel toolbarHeight; > newRow: [ :row | ]. > > ui openWithSpecLayout: layout. > > If you want want more details, I suggest you read the Spec Booklet > https://ci.inria.fr/pharo-contribution/view/Books/job/BuildingUIWithSpec/lastSuccessfulBuild/artifact/book-result/SpecBooklet.pdf > > <https://ci.inria.fr/pharo-contribution/view/Books/job/BuildingUIWithSpec/lastSuccessfulBuild/artifact/book-result/SpecBooklet.pdf> > > A lot of effort has been put into it recently to update it, so it should be > up-to-date. > > Peter > > On Wed, Aug 17, 2016 at 8:53 PM, Brad Selfridge <bsselfri...@gmail.com > <mailto:bsselfri...@gmail.com>> wrote: > I'm trying to build a toolbar widget that contains two fixed width buttons, a > variable width textInputBox followed by two more fixed width buttons. I'm > not sure how to mix fixed and variable width widgets. > > Can someone give me an idea on how to do this? > > Thanks, > > > > ----- > Brad Selfridge > -- > View this message in context: > http://forum.world.st/Spec-Widget-positioning-tp4911599.html > <http://forum.world.st/Spec-Widget-positioning-tp4911599.html> > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > >