Jump to content

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 4 weeks later...

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
 Share

  • Recently Browsing   0 members

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