Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

Re: Changing colour of id print string on display

New Message Reply Date view Thread view Subject view Author view

Subject: Re: Changing colour of id print string on display
From: Deb Cleland (deborah.cleland@gmail.com)
Date: Wed Dec 09 2009 - 15:05:20 CET

Similarly, is there a way to increase the size of the font in an interface?

The 'size' function does not seem to work?

Salamat ulit, Thanks again,

Deb

2009/12/9 Christophe LE PAGE <christophe.le_page@cirad.fr>

>
>
>
>
> > By the way I never succeed finding a way to change the font size of the
> string displayed. If anyone has a clue, please let me know.
>
> >
>
>
>
> You can use Text instead of String. For instance to display large bold
> white id numbers in the middle of each cell, add this instruction in the
> #displayOn: method
>
>
>
> (self id printString asText emphasizeAllWith: #(#bold #large #color ->
> ColorValue white))
>
> displayOn: aGC
>
> at: self center x @ self center y
>
>
>

-- 
Deborah Cleland
PhD Student
Fenner School of Environment and Society
College of Medicine, Biology & Environment
Room 2.05, Building 48a
Australian National University
Canberra, A.C.T.  0200
p: +61 2 6125 8150
e: deborah.cleland@anu.edu.au

<<<- Is it worth a tree to print me?

"the lyf so short, the craft so long to lerne." (Chaucer)

New Message Reply Date view Thread view Subject view Author view
 

Back to home