Jump to content

Dressing up an Edit control?


jimg
 Share

Recommended Posts

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...

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

  • Recently Browsing   0 members

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