Sign in to follow this  
Followers 0
jimg

Dressing up an Edit control?

6 posts in this topic

I'm trying to create a GUI that includes an edit control where I want to be able to type something like an assembly language source. I later want to "step" though the code after clicking a "compile" button.

I want to highlight a single line of the edit control. I've tried GUICtrlSetColor like this:

$edit=GUICtrlCreateEdit("",10,10,500,790)

GUICtrlSetColor($edit,0x0000ff)

GuiCtrlSetData(-1,"blue","")

GUICtrlSetColor($edit,0x00ff00)

GuiCtrlSetData(-1,"green",1)

but all the text ends up green. Is there another way? A text background color would be even better.

Am I missing something? I hate to resort to a "=>" in the left column, although if that's all there is...

Share this post


Link to post
Share on other sites



The script doesn't run on my PC, so I can't tell what it's supposed to do. Pop up describes a COM error. Windows 7.

Share this post


Link to post
Share on other sites

So there's no way to have simultaneous multiple colors of text in a _GUICtrlEdit control?

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  
Followers 0