Hi Chris,
 
> I'm trying to create a chat client that makes use of rich 
> text in order to allow coloured text.
> The problem comes when trying to get the colour parsed.

Have you considered using an HTML-capable display engine? That way you
can include links and other common features as well, out of the box.
You'd also only have to worry about sanitizing the content which could
already include the color codes or what not in the stream.

> Ie How do I set mycolour from either the name or rgb
> settings please?

You could use a really long Select statement or if the value is being
sent along the stream, consider using control flags to signal change of
stream processing (much like HTML uses < and >) and send a Long
indicating the vb-color code.

Regards,

Shawn K. Hall
http://12PointDesign.com/
http://ReliableAnswers.com/




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h2vb70h/M=362335.6886445.7839731.1510227/D=groups/S=1705115364:TM/Y=YAHOO/EXP=1124875666/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 


'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [email protected]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to