| Reply | « Previous Thread | Next Thread » |
|
I make a function to help adding richtext to Text().
http://www.bigbold.com/snippets/posts/show/1612 The font tag (<font></font>) is used (borrowed from HTML). Attributes allowed are - color ( #RRGGBB or 0xRRGGBB or color name) - face ( both font and size eg. albi17b ) - style ( bold, italic, underline or strikethrough ) (styles can be combined using comma) - highlight ( standard, rounded, shadow) - hcolor ( highlight color ) Code:
>>> t = app.body # use the default Text widget that start pys60 >>> set_ml(t, '<font color=red>Hello</font> <font style=bold>World</font>.') >>> # a stylish 'Hello World' is displayed |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Rich Text Editor and Dialog | sakhya | Symbian | 0 | 2005-04-28 18:09 |
| Rich Text Editor and Dialog | sakhya | Symbian User Interface | 0 | 2005-04-28 18:08 |
| Persist text value of user defined option in Enumerated Text Settings List | leethomso | Symbian User Interface | 0 | 2004-11-24 19:49 |
| CRichText text problem | introuble | Symbian User Interface | 2 | 2003-09-30 18:29 |
| Clearing Label Text | tejinderka | General Symbian C++ | 3 | 2003-09-19 11:53 |