Login  Register

Re: RTStyledLabel

Posted by abergel on Sep 22, 2015; 12:32am
URL: https://forum.world.st/RTStyledLabel-tp4851115p4851417.html

Just tried it.
Gorgeous!!!

Thanks!!!

Alexandre


> On Sep 19, 2015, at 11:24 AM, Peter Uhnák <[hidden email]> wrote:
>
> Hi,
>
> I've added RTStyledLabel which supports TextEmphasis.
>
> RTGeneralExample>>styledLabel
> ~~~~~~~~~~~~~~
> | v shape el all |
> v := RTView new.
> (shape := RTStyledLabel new) color: Color black.
>
> #(normal italic bold underlined struckOut) do: [ :each |
>     el := shape
>     emphasis: (TextEmphasis perform: each);
>     elementOn: each.
>     v add: el ].
>
> all := shape
>     emphasis: { TextEmphasis bold. TextEmphasis italic. TextEmphasis underlined};
>     elementOn: 'bold + italic + underlined'.
> v add: all.
>
> RTVerticalLineLayout on: v elements.
>
> v open
> ~~~~~~~~~~~~~~~~~~~~~
>
> <2015-09-19_16:23:34.png>
> ​
> Peter

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.