Jump to content

Changing Textbox Text Color


Recommended Posts

it should work... and this too!

#include <GUIConstants.au3>

GUICreate("My GUI color text") ; will create a dialog box that when displayed is centered

GUICtrlCreateCheckbox ("my Red label", 10,20)
GUICtrlSetColor(-1,0xff0000); Red
GUICtrlSetBkColor(-1,0x00ff00) ; Green

GUISetState ()

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

per help

GUICtrlSetColor

--------------------------------------------------------------------------------

Sets the text color of a control.

GUICtrlSetColor ( controlID, textcolor)

Parameters

controlID The control identifier (controlID) as returned by a GUICtrlCreate... function.

textcolor The RGB color to use.

Return Value

Success: Returns 1.

Failure: Returns 0.

Remarks

Only Label, Checkox, Group, Radio, Edit, Input, Listview, Treeview, Graphic and Progress controls can currently be colored.

must be a BUG

8)

NEWHeader1.png

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