1. Here's the (I believe) equivalent LayoutFrames settings: #anchorRight - rightFraction: 1 rightOffset: -pixelsToRight #anchorBottom - bottomFraction: 1 bottomOffset: -pixelsToBottom #anchorLeft - leftFraction: 0 leftOfffset: pixelsToLeft #anchorTop - topFraction: 0 topOffset: pixelsToTop The problem with having just those four options is they don't work well with resizing when you have more than one widget (try placing two side by side and locking left + right)... In those cases you usually want a fraction somewhere between 0/1 for at least one of the edges, and adjust those a couple of pixels to make a constant size border between morphs, like this: Morph1 - leftFraction: 0 leftOffset: 5 rightFraction: 0.5 rightOffset: -2 Morph2 - leftFraction: 0.5 leftOffset: 2 rightFraction: 1 rightOffset: -5 2. Yes, I believe so. Note, this might also modifiy their rendering order (I haven't checked though), which could be important if you have partially overlapping morphs Cheers, Henry nullPointer skrev:
1. I have always work with owners in ProportionalLayout, don´t let work with another layoutPolicy in the canvas designer. In view designer exists the possibility of "anchor" a widget to top, left, down and right. That is all need the user ( for the moment ) for anchor a widget, but fails to change size and position.Exists the possibility of do it in ProportionalLayout on owner?
2. Then i understand than changing the order of submorphs that works? I will probe.
Regards and many thanks.
2009/9/14 Gary Chambers (via Nabble) <[hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3641368&i=0>>
1. position/extent depends on how thae morph is laid out in its owner. LayoutFrame is used when the owner specified a proportional layout, use the fractions to pin corners and the offsets to.. offset. If the owner specifies no layout then postion/extent work as expected. For table layouts things are more complicated (see hResizing/vResizing etc.)
2. Tab order (keyboard navigation) follows the order of the submorphs at present. Add your morphs (using addMorphback: or via the Polymorph row/column type stuff) in the order you want navigation to follow.
Regards, Gary
----- Original Message ----- From: "nullPointer" <[hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3641268&i=0>> To: <[hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3641268&i=1>> Sent: Sunday, September 13, 2009 9:48 PM Subject: [Pharo-project] Polymorph - TabIndex and layoutFrames questions
> > > 1- How i can change the #position or #extent of a Morph with a layoutFrame > setted ? > > for example, i have a button "anchored" to top and right; if i set the > #position: of that button the position don´t change. Then i try override > the > #position: accessor of my button; first set #layoutframe: to nil, later do > the set normally of #position: and later set again the old value of > #layoutFrame: , for remain the original anchors. But don´t works. Well, if > I > execute the code in a WorkSpace, line to line, then works! but don´t if > execute all code. I don´t understand :| > > > 2- How works the tab index mechanism in Polymorph? > > in some of my Views i have controls with unordered tab order in controls. > How i can change the order? I don´t see nothing for start. > > 3- Exists the possibility of change the position of cursor of a textbox? > > > Regards, and thanks for the help > > -- > View this message in context: > http://n2.nabble.com/Polymorph-TabIndex-and-layoutFrames-questions-tp3638041... > Sent from the Pharo Smalltalk mailing list archive at Nabble.com. > > _______________________________________________ > Pharo-project mailing list > [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3641268&i=2> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3641268&i=3> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
------------------------------------------------------------------------ View this message in context: Re: [Pharo-project] Polymorph - TabIndex and layoutFrames questions <http://n2.nabble.com/Polymorph-TabIndex-and-layoutFrames-questions-tp3638041...> Sent from the Pharo Smalltalk mailing list archive <http://n2.nabble.com/Pharo-Smalltalk-f2305563.html> at Nabble.com. ------------------------------------------------------------------------
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project