Sometimes you need to use one or more Labels on a Form that just need to offer a little bit "richer" options.
Maybe you need to have some of the text bold or underlined. Maybe you need a superscript or subscript. Maybe you need to use a symbol from one of the symbol fonts like Windings. Maybe you need a second color to highlight a word or a symbol.
RicherLabel offers a way to do this without a lot of trouble. It basically accepts a Caption property with a simple markup syntax and renders the Caption according to the markup instructions.
You can even do simple "color blinking" as shown in the demo.
Some limitations:
If you need some with a border and some without, make another copy of the UserControl and name it something like RicherLabelB and then set the UserControl's BorderStyle. Or you might rework RicherLabel to draw its own border and add a BorderStyle property to it.
You could also work out a scheme for it and then implement word-wrap and multiline labels.
The RicherLabel markup consists of instructions of one character escaped using the ` (accent grave) character. You could easily change this yourself to something else, or maybe change the way the color table works, etc. You can also strip out functions you don't need pretty easily to reduce the compiled size of programs using RicherLabels.
Maybe you need to have some of the text bold or underlined. Maybe you need a superscript or subscript. Maybe you need to use a symbol from one of the symbol fonts like Windings. Maybe you need a second color to highlight a word or a symbol.
RicherLabel offers a way to do this without a lot of trouble. It basically accepts a Caption property with a simple markup syntax and renders the Caption according to the markup instructions.
You can even do simple "color blinking" as shown in the demo.
Some limitations:
- It doesn't support a BorderStyle.
- No multiline support.
- No word-wrap.
- No justification (always left-justified).
If you need some with a border and some without, make another copy of the UserControl and name it something like RicherLabelB and then set the UserControl's BorderStyle. Or you might rework RicherLabel to draw its own border and add a BorderStyle property to it.
You could also work out a scheme for it and then implement word-wrap and multiline labels.
The RicherLabel markup consists of instructions of one character escaped using the ` (accent grave) character. You could easily change this yourself to something else, or maybe change the way the color table works, etc. You can also strip out functions you don't need pretty easily to reduce the compiled size of programs using RicherLabels.
Image may be NSFW.
Clik here to view.
Demo: Design Time
Image may be NSFW.
Clik here to view.
Demo: Run Time
Clik here to view.

Demo: Design Time
Image may be NSFW.
Clik here to view.

Demo: Run Time