i´m already using fractions and offsets, through my class CLDecorMorph...
http://paste.lisp.org/display/87049 

(Note: in that class properties as #position or #top, #left etc  be
relatives to owner)

I´m use the owner always with ProportionalLayout and the "anchors" with the
fractions-offsets mechanism. The problem is when I try set the #position: or
#extent: accessors. Don´t works.





Gary Chambers wrote:
> 
> 1. "Fixed" positioning can be achived by setting the fractions to 0...@0 for
> top-left and bottom-right then using the offsets.
> 
> Regards, Gary
> 
>   ----- Original Message ----- 
>   From: nullPointer 
>   To: [email protected] 
>   Sent: Monday, September 14, 2009 12:03 PM
>   Subject: Re: [Pharo-project] Polymorph - TabIndex and layoutFrames
> questions
> 
> 
>   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]>
> 
>     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]> 
>     To: <[hidden email]> 
>     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-tp3638041p3638041.html
>     > Sent from the Pharo Smalltalk mailing list archive at Nabble.com. 
>     > 
>     > _______________________________________________ 
>     > Pharo-project mailing list 
>     > [hidden email] 
>     > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project  
> 
> 
>     _______________________________________________ 
>     Pharo-project mailing list 
>     [hidden email] 
>     http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project 
> 
> 
> 
> ------------------------------------------------------------------------------
>   View this message in context: Re: [Pharo-project] Polymorph - TabIndex
> and layoutFrames questions
>   Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
> 
> 
> 
> ------------------------------------------------------------------------------
> 
> 
>   _______________________________________________
>   Pharo-project mailing list
>   [email protected]
>   http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> 

-- 
View this message in context: 
http://n2.nabble.com/Polymorph-TabIndex-and-layoutFrames-questions-tp3638041p3642822.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to