Hello Herbert, <br><br>It&#39;s so kind of you ! I am newly to Squeak, and want to try Samlltalk, I feel friendly and helpful in Squeak community. Vielen Dank !<br><br>tonyliu.<br><br><div><span class="gmail_quote">2007/11/10, Herbert König &lt;
<a href="mailto:herbertkoenig@gmx.net">herbertkoenig@gmx.net</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello Tony,<br><br>
HK&gt; Trying to help you how to fish, cause in the time I have I didn&#39;t<br>HK&gt; manage to do it myself.<br>HK&gt; I&#39;ll try later to make it work and report here.<br>I&#39;ll write up my findings as I go along: (in the end there is a
<br>solution but I think most important is you see methods to find out<br>something.)<br><br>Browsing IconicButton (which is what the Flaps contain) it seems to me<br>that the label is not a Text or a TextMorph so it doesn&#39;t have a font
<br>you can change.<br><br>I guess from looking at the code that an Iconic button uses a<br>StringMorph to get the Form of its label and then adds that graphic to<br>its own graphic.<br><br>So the task seems twofold:<br>1- Find out which font is used for building the labels of the icons in
<br>the flaps<br>2- Find out how to rebuild the flaps.<br><br>The second task was easier. I used the method finder to look for<br>methods with &quot;flaps&quot; in their name.<br><br>addStandardFlaps looked promising but the comment to the method said
<br>that the method itself does not display the flaps. But browsing for<br>senders of addStandardFlaps revealed the class side method<br>reinstateDefaultFlaps of Flaps class.<br><br>So Flaps reinstateDefaultFlaps in a Workspace removes all flaps and
<br>rebuilds them. Give it some time when you run it the first time.<br><br>So next I copied the Preferences class method chooseFlapsFont to a<br>workspace, changed every self to Preferences and made it set the<br>button font. This looked like:
<br><br>Preferences chooseFontWithPrompt: &#39;Choose a flapsIcons font&#39; translated<br>andSendTo: Preferences withSelector: #setButtonFontTo:<br>highlight: Preferences standardButtonFont<br><br>But rebuilding the flaps with
<br><br>Flaps reinstateDefaultFlaps<br><br>still gave me the old fonts.<br><br>So I think we need to solve a third problem, that&#39;s to regenerate the<br>IconicButtons in the Flaps and maybe step 2 from above isn&#39;t needed at
<br>all.<br><br>After I followed that false trail for a while I found in IconicButton<br><br>initializeWithThumbnail:withLabel:andColor:andSend:to:<br><br>and in this method I saw that IconicButton uses standardEtoysFont<br>
which can be set from the world menu as described in earlier mails.<br><br>That finally did it. I had an interesting time finding it out.<br><br>To sum it up:<br>In the world menu set the etoys font to what you like in your Flaps.
<br>Then in a Workspace run:<br>Flaps reinstateDefaultFlaps<br><br>Then reset the etoys font to what you like for etoys.<br><br>The first time you use the new Flaps you probably have to pull them<br>out manually to accommodate the wider font.
<br><br>Cheers<br><br>Herbert&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mailto:<a href="mailto:herbertkoenig@gmx.net">herbertkoenig@gmx.net</a><br><br><br>_______________________________________________<br>Beginners mailing list<br><a href="mailto:Beginners@lists.squeakfoundation.org">
Beginners@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br></blockquote></div><br>