Jump to content

Recommended Posts

Posted (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 by Kivin
Posted (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 by Secure_ICT
  • 4 weeks later...
Posted

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?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...