[Newbies] SimpleButtonMorph questions
herbertkoenig at gmx.net
Tue Apr 21 19:15:06 UTC 2009
pmyc> I would like to change the label color of SimpleButtonMorphs.
With World Menu, new Morph, from alphabetical list
I put one on the screen, with the grey halo I opened an Inspector on
In that I typed:
(self findA: StringMorph) color: Color red
used "doIt" and got a red label.
I got the idea from the label: method in SimpleButtonMorph.
pmyc> Also, I have a series of these buttons, and would like
pmyc> them to be the same length with the label centered.
In that same inspector typing in:
self width: 80
and doIt it changed its width.
Having the label centered is is second nature to this Morph also can
be seen in the method label:
As you can see there setting the label also sets the extents so send
width: aNumber or extent: aPoint late in the process.
More information about the Beginners