CyrilFerlicot wrote
Le 14/02/2017 à 21:41, chrismihaylyk a écrit :
Hello!
I need to get bold text. Can you help me what class I should use and all method to make text bold?
Hi!
Here an example opening a window with some bold text:
TextMorph new contents: ((Text string: 'I am bold' attribute: TextEmphasis bold), ' and I am normal text'); openInWindow
Does that fits your needs?
Thanks ^_^
-- View this message in context: http://forum.world.st/Bold-label-tp4934321.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
-- Cyril Ferlicot
2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
signature.asc (836 bytes) <http://forum.world.st/attachment/4934322/0/signature.asc>
Hmm, why text is shown in white color instead bold, when I run the code? And, honestly speaking, I need to be bold string stored in text variable in this example ('COLLECTION') which I pass in UIManager popup: text := Text string: 'COLLECTION' attribute: TextEmphasis italic. UIManager default request: 'This is your ', text, ' name'. -- View this message in context: http://forum.world.st/Bold-label-tp4934321p4934328.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.