[Wxsqueak] Changing Default Fonts

Rob Rothwell r.j.rothwell at gmail.com
Fri Aug 15 00:53:31 UTC 2008


On Sat, Aug 9, 2008 at 8:06 PM, Rob Gayvert <rtg at rochester.rr.com> wrote:

> Being able to set this via the Options dialog is certainly the plan, but
> unfortunately it's not there yet. For now, you'll need to set the font in
> the #createView method of each window.
>

Ok...I hate to ask this one, but can you point me in the right direction
with a seemingly straightforward window like the Transcript?  I assume you
need to add something like:

textPane setFont: (WxFont pointSize: 28 family: wxDefault style: wxNormal
weight: wxNormal underline: false faceName: 'Tahoma').

to:

WxTranscriptPresenter>>createView

| textPane |

self model: Transcript.

view := WxFrame title: 'Transcript'.
view setIcon: WxIcon sample.
 textPane := WxPluggableTextWidget parent: view.

textPane
on: model
text: #contents
accept: #acceptContents:
readSelection: nil
menu: #codePaneMenu:shifted:.

But I'm not doing so good...!

Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/wxsqueak/attachments/20080814/d7ec111a/attachment.htm


More information about the Wxsqueak mailing list