Jump to content
Sign in to follow this  

Edit box

Recommended Posts


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 by Kivin

Share this post

Link to post
Share on other sites

Try using Koda, and it will give you options to change this.

Here is a simple script:

#include <GuiConstants.au3>

$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)

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $gui_event_close
Edited by Secure_ICT

Share this post

Link to post
Share on other sites

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?

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.