Difference between revisions of "BBCodeLabel"
From Jeremie Leroy - XOJO Controls Wiki
m (4 revisions imported) |
(→Supported BBCode Tags) |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | Extension of the Label control of REALbasic, this control enables formatting the text with BBCode tags | + | Extension of the Label control of REALbasic, this control enables formatting the text with BBCode tags |
| Line 95: | Line 95: | ||
|} | |} | ||
| + | |||
| + | ==Supported BBCode Tags== | ||
| + | |||
| + | |||
| + | * [b] for displaying in '''Bold''' | ||
| + | * [i] for displaying in ''Italic'' | ||
| + | * [s] for striked <strike>text</strike> | ||
| + | * [u] for <u>underlined</u> | ||
| + | * [sub] for <sub>subscript</sub> | ||
| + | * [sup] for <sup>superscript</sup> | ||
| + | * [color=#FF0088] for <span style="color:#f08">colored text</span> | ||
| + | * [align=center] to change text alignment | ||
| + | * [highlightcolor=#FFFF00] to <span style="background-color:#FF0">highlighted text</span> | ||
| + | * [url=...] to display a [[Main Page|clickable URL]] | ||
| + | * [Font=...] to <span style="font-family:monospace">change the font</span> | ||
| + | * [size=24] to change <span style="font-size:24px">font size</span> | ||
==Class Constants== | ==Class Constants== | ||
| Line 135: | Line 151: | ||
|2 | |2 | ||
|} | |} | ||
| − | |||
| + | ==History== | ||
| + | |||
| + | === Version 1.5 - Released 2016-07-04=== | ||
| + | *New: | ||
| + | **Subscript [sub] and Superscript [sup] | ||
| + | **Right-To-Left text | ||
| + | |||
| + | === First release=== | ||
BBCodeLabel by Jérémie Leroy | BBCodeLabel by Jérémie Leroy | ||
| Line 142: | Line 165: | ||
All code is copyrighted to Jérémie Leroy. | All code is copyrighted to Jérémie Leroy. | ||
| + | |||
| + | ==See Also == | ||
| + | |||
| + | [[WebBBCodeLabel]] | ||
Latest revision as of 18:39, 4 July 2016
Extension of the Label control of REALbasic, this control enables formatting the text with BBCode tags
| Events |
| DrawBackGround |
| DrawForeGround |
| MouseDown |
| Open |
| Refreshed |
| Resized |
| Methods |
| RealText |
| Shared Methods |
| Register |
Contents
Supported BBCode Tags
- [b] for displaying in Bold
- [i] for displaying in Italic
- [s] for striked
text - [u] for underlined
- [sub] for subscript
- [sup] for superscript
- [color=#FF0088] for colored text
- [align=center] to change text alignment
- [highlightcolor=#FFFF00] to highlighted text
- [url=...] to display a clickable URL
- [Font=...] to change the font
- [size=24] to change font size
Class Constants
TextAlign
The following class constants are to be used to specify the Text horizontal alignment.
| Class Constant | Value |
|---|---|
| AlignLeft | 0 |
| AlignCenter | 1 |
| AlignRight | 2 |
| AlignJustified | 3 |
TextAlign
The following class constants are to be used to specify the Text vertical alignment.
| Class Constant | Value |
|---|---|
| AlignTop | 0 |
| AlignMiddle | 1 |
| AlignBottom | 2 |
History
Version 1.5 - Released 2016-07-04
- New:
- Subscript [sub] and Superscript [sup]
- Right-To-Left text
First release
BBCodeLabel by Jérémie Leroy Version 1.0 Released 16 March 2009
All code is copyrighted to Jérémie Leroy.