I gave you the code in the mail ;) Nothing more or very little is required more than that. Stef On Sep 14, 2009, at 9:38 AM, nullPointer wrote:
I donôt know how do that. Seems very complicated for me.
I did think in each widgets implements a method where return his state. The code will be more readable ( i believe ) and seems more easy of implement ( i believe too )
regards
2009/9/14 Stéphane Ducasse-2 (via Nabble) <[hidden email]> BTW I was thinking about your work (I still have to play with it).
IN MC UI they build the UI useing spec look at buildWindow buildWindow à à à à | window | à à à à window := SystemWindow labelled: self label. à à à à window model: self. à à à à self widgetSpecs do: [:spec | à à à à à à à à | send fractions offsets | à à à à à à à à send := spec first. à à à à à à à à fractions := spec at: 2 ifAbsent: [#(0 0 1 1)]. à à à à à à à à offsets := spec at: 3 ifAbsent: [#(0 0 0 0)]. à à à à à à à à window à à à à à à à à à à à à addMorph: (self perform: send first withArguments: send allButFirst) à à à à à à à à à à à à fullFrame: à à à à à à à à à à à à à à à à (LayoutFrame à à à à à à à à à à à à à à à à à à à à fractions: à à à à à à à à à à à à à à à à à à à à à à à à ((fractions first)@(fractions second) corner: à à à à à à à à à à à à à à à à à à à à à à à à à à à à (fractions third)@(fractions fourth)) à à à à à à à à à à à à à à à à à à à à offsets: à à à à à à à à à à à à à à à à à à à à à à à à ((offsets first)@(offsets second) à corner: à à à à à à à à à à à à à à à à à à à à à à à à à à à à (offsets third)@(offsets fourth)))]. à à à à ^ window
buttonSpecs à à à à ^ #((Invert invert 'Show the reverse set of changes') à à à à à à à à à (Export export 'Export the changes as a change set')) widgetSpecs à à à à ^ { à à à à à à à à #((listMorph:selection:menu:keystroke: list selection à methodListMenu: methodListKey:from:) (0 0 1 0.4) (0 0 0 0)). à à à à à à à à { #(textMorph: annotations). #(0 0.4 1 0.4). { 0. 0. 0. self à defaultAnnotationPaneHeight. } }. à à à à à à à à { #(textMorph: text). #(0 0.4 1 1). { 0. self à defaultAnnotationPaneHeight. 0. 0. } }. à à à à à à à à }
this is minimal and not optimal but this is nice to have an array of à literal to describe a UI
Stef
On Sep 13, 2009, at 10:48 PM, nullPointer wrote:
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://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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project