labelMorph := Morph new. "labelCenteringMorph := Morph new beTransparent; hResizing: #spaceFill; changeTableLayout; listDirection: #leftToRight; listCentering: #center; addMorph: labelMorph; yourself." Morph new color: Color white; changeTableLayout; listCentering: #center; " cellPositioning: #center;" extent: 500@500; addMorph: labelMorph; openInWorld. How do I get labelMorph centered on the width of its parent without labelCenteringMorph? ----- Cheers, Sean -- View this message in context: http://forum.world.st/Submorph-centering-tp4734988.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
wrapCentering: #center; instead of cellPositioning:#center; I don't understand anything of this Morphic Layout stuff. This is just what have seen in MenuMorph code Nicolai 2014/1/7 Sean P. DeNigris <sean@clipperadams.com>
labelMorph := Morph new.
"labelCenteringMorph := Morph new beTransparent; hResizing: #spaceFill; changeTableLayout; listDirection: #leftToRight; listCentering: #center; addMorph: labelMorph; yourself."
Morph new color: Color white; changeTableLayout; listCentering: #center; " cellPositioning: #center;" extent: 500@500; addMorph: labelMorph; openInWorld.
How do I get labelMorph centered on the width of its parent without labelCenteringMorph?
----- Cheers, Sean -- View this message in context: http://forum.world.st/Submorph-centering-tp4734988.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Tips: to discover which message fit your need, you can experiment from the menu you got from the halo of your morph. Hilaire Le 07/01/2014 19:16, Sean P. DeNigris a écrit :
labelMorph := Morph new.
"labelCenteringMorph := Morph new beTransparent; hResizing: #spaceFill; changeTableLayout; listDirection: #leftToRight; listCentering: #center; addMorph: labelMorph; yourself."
Morph new color: Color white; changeTableLayout; listCentering: #center; " cellPositioning: #center;" extent: 500@500; addMorph: labelMorph; openInWorld.
How do I get labelMorph centered on the width of its parent without labelCenteringMorph?
----- Cheers, Sean -- View this message in context: http://forum.world.st/Submorph-centering-tp4734988.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
-- Dr. Geo http://drgeo.eu
Did you try something like myMorph center: myParent center ? Ben On 11 Jan 2014, at 17:11, Hilaire Fernandes <hilaire.fernandes@gmail.com> wrote:
Tips: to discover which message fit your need, you can experiment from the menu you got from the halo of your morph.
Hilaire
Le 07/01/2014 19:16, Sean P. DeNigris a écrit :
labelMorph := Morph new.
"labelCenteringMorph := Morph new beTransparent; hResizing: #spaceFill; changeTableLayout; listDirection: #leftToRight; listCentering: #center; addMorph: labelMorph; yourself."
Morph new color: Color white; changeTableLayout; listCentering: #center; " cellPositioning: #center;" extent: 500@500; addMorph: labelMorph; openInWorld.
How do I get labelMorph centered on the width of its parent without labelCenteringMorph?
----- Cheers, Sean -- View this message in context: http://forum.world.st/Submorph-centering-tp4734988.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
-- Dr. Geo http://drgeo.eu
participants (4)
-
Benjamin -
Hilaire Fernandes -
Nicolai Hess -
Sean P. DeNigris