Author | Message | Time |
---|---|---|
blinkdude | i was wondering if you can go multi colors in 1 line like in a "RTB" like this is my code [code] Text1.Text = Text1.Text & "<" & Username & "> " & TextSend.Text & vbCrLf [/code] is there a way i can make that line multi colors? | July 11, 2003, 8:07 PM |
Grok | Ditch the textbox and go with a RichTextBox. It's far easier, nearly every bnet bot for chatting uses it, so there's lots of example code. | July 11, 2003, 8:29 PM |
blinkdude | yes i have made the move! :) ok but how would i go about this "<username>"teal and me chat text white [code] rtbAdd "<" & Username & "> " & TextSend.Text & vbNewLine, vbTeal [/code] hey what are the color codes for white / red / yellow or off hand you know ;) [code] Public Const vbBage = &H80000000 Public Const vbGrey = &H808080 Public Const vbTeal = &HFFFF00 Public Const vbDGreen = &H8000& [/code] | July 11, 2003, 8:48 PM |
DarkMinion | That's beige* Also, these are the constants I have, they are in C++, but you should be able to translate them to VB fairly easily... [code] #define BLACK 0x00000000 #define BLUE 0x00FF0000 #define RED 0x000000FF #define GREEN 0x0000FF00 #define WHITE 0x00FFFFFF #define YELLOW 0x0000FFFF #define LIGHTBLUE 0x00FFFF00 #define GRAY 0x00757575 #define DARKGREEN 0x00217721 [/code] Ex: [code] Public Constant RED &H000000FF [/code] | July 11, 2003, 9:18 PM |
blinkdude | ah k i got my text box wokring but i want to change the color of connecting where do i put the color code in front of text? or behing plz show example wiht my text vBgreen is the color "Public Const vbGreen = &H8000&" [code] rtbAdd " [" & time & "]" & " Connecting " & "To Battle.Net Chat Server" & vbNewLine [/code] | July 11, 2003, 9:31 PM |
blinkdude | [quote author=blinkdude link=board=17;threadid=1874;start=0#msg14548 date=1057959117] ah k i got my text box wokring but i want to change the color of connecting where do i put the color code in front of text? or behing plz show example wiht my text vBgreen is the color "Public Const vbGreen = &H8000&" [code] rtbAdd " [" & time & "]" & " Connecting " & "To Battle.Net Chat Server" & vbNewLine [/code] [/quote] or can you put multi-color is in like the " [" & time & "]" white and Connecting " & "To Battle.Net Chat Server" & vbNewLine green plz that would help alot i know how to make it all green just add the , vbgreen to then end but 2 colors i duno :/ | July 11, 2003, 9:38 PM |