Re: Label control that supports hyperlinks, different colors and font styles
What I like about it personally is how you can format everything in a similar fashion as BB code so you could have one single label but make certain words a certain color, underlined, bold, italic, etc... vs having to have two three labels to achieve a similar effect.
For example when I'm querying AD, I have one label for what it is and one label for result. I could have a single label and have the first part what it is in bold and the second part just plain text (for example).
Any number of other such situations.
The same could be said about a custom msgbox if it could do this
where you can use simple forum style code formatting in a string that gets parsed.
Code:
"Is online: Offline" & vbcrlf & _
"Is mez onlinez Online!" & vbcrlf & _
"Underlinez meeee"
Soimething like that like this hyperlabel does.
Edit: lol that didn't workout so well.. didn't display BB codes.. it actually just showed the output haha...
Speaking of which I notice some people use code block with color coded VB code.. is there a hidden BB code on this forum for that or ... did those people actually take the time to color code the code >_>
Re: Label control that supports hyperlinks, different colors and font styles
Quote:
Originally Posted by
a_ahmed
What I like about it personally is how you can format everything in a similar fashion as BB code so you could have one single label but make certain words a certain color, underlined, bold, italic, etc...
I actually wrote something like this about a year ago but its not complete.
Quote:
Originally Posted by
a_ahmed
Speaking of which I notice some people use code block with color coded VB code.. is there a hidden BB code on this forum for that or ... did those people actually take the time to color code the code >_>
You're talking about highlight tags. This:-
[HIGHLIGHT=vbnet]
Dim a As Integer
[/HIGHLIGHT]
Gives you this:-
Re: Label control that supports hyperlinks, different colors and font styles
Quote:
Originally Posted by
Niya
I actually wrote something like this about a year ago but its not complete.
Ah I hope you get it done, this would be wicked cool for labels and msgbox!
Quote:
You're talking about highlight tags. This:-
[HIGHLIGHT=vbnet]
Dim a As Integer
[/HIGHLIGHT]
Gives you this:-
Oh I did't know that, wicked! Too cool! :) I need that on my myBB forum lol. This is a vBulletin forum though right? Just did a quick google and found this: http://www.infernodevelopment.com/bb...x-highlighting will have to investigate!
Re: Label control that supports hyperlinks, different colors and font styles
Quote:
Originally Posted by
a_ahmed
Ah I hope you get it done, this would be wicked cool for labels and msgbox!
Yea, I'll see if I can pick up where I left off. Just have to find it first lol.
Quote:
Originally Posted by
a_ahmed
This is a vBulletin forum though right?
Yep. Though I believe the highlight tags are custom made specifically for this forum. I wouldn't expect them to work at say Stormfront.org which also runs vBulletin.
Re: Label control that supports hyperlinks, different colors and font styles
Implementing the mouse wheel to this label will make it easier to scroll.