Kivin Posted May 4, 2007 Share Posted May 4, 2007 (edited) Is there a way to colored text in edit box like SciTE4AutoIt3 or ICQ? (I mean different colors in one edit box) I have two alternative ideas: 1. Some one wrote about rich text, but I cant find any example. 2. Use internet explorer page in edit box. Problem - i can only send a source code into edit box. So please give me your opinion or idea. Thanks alot. Edited May 4, 2007 by Kivin Link to comment Share on other sites More sharing options...
James Posted May 4, 2007 Share Posted May 4, 2007 (edited) Try using Koda, and it will give you options to change this. Here is a simple script: #include <GuiConstants.au3> #NoTrayIcon $font = "Courier New" $gui = GUICreate("GUI", 482, 250, -1,-1) $txt = GUICtrlCreateEdit("Hello World.. I'm in colour!", 0, 0, 481, 250, $WS_VSCROLL) GUICtrlSetFont (-1, 9, 400, 4, $font) GUICtrlSetBkColor(-1, 0x000000) GUICtrlSetColor(-1, 0xffaff) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Switch $msg Case $gui_event_close exit EndSwitch Wend Edited May 4, 2007 by Secure_ICT Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
MagnumXL Posted May 31, 2007 Share Posted May 31, 2007 Hmm. this is along the lines of what i am after. What if I wanted that line to be two different colors? Like the "Hello World.." in red and the "I'm in colour!" in blue? Link to comment Share on other sites More sharing options...
James Posted May 31, 2007 Share Posted May 31, 2007 Then you will need to start using RichText control. Check out my BetaPad. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now