Jump to content
Sign in to follow this  
Hellfire

Changing Textbox Text Color

Recommended Posts

Checkbox not textbox sorry.

The text color is still black.

$remember = GUICtrlCreateCheckbox ("Remember", 75, 270, 150, 15)
GUICtrlSetColor(-1,0xffffff)
Edited by Hellfire

Share this post


Link to post
Share on other sites

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...