Jump to content

Anyway to change text colour?


Recommended Posts

Hi, I'm think to make my text having different colour to represent different section/group in my GUI wndows.

Is there a way in AutoIt for me to change my text colour?

Or further more can I animate my text to switch between 2 colours so that it is flashing to get attention of user eyes? :)

[font="Arial"]Thanks[/font]
If @error = me Then $sorry
Else
   Do
      $clarifyMe
   Until $meClear
EndIF
MsgBox(0,"Special Message!","Special Thanks to " & $allHadReplied,$Forever)
Link to comment
Share on other sites

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, Treeview, Graphic and Progress controls can currently be colored.

Progress controls cannot be painted if the "Windows XP style" is used.

Earlier versions of AutoIt (prior to v3.0.102) used the BGR format for defining color - newer versions use RGB by default but this can be changed using the ColorMode option.

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
Link to comment
Share on other sites

Hey thanks. I read that before in the help but somehow I forgotten it. Thanks for giving me that direction.

[font="Arial"]Thanks[/font]
If @error = me Then $sorry
Else
   Do
      $clarifyMe
   Until $meClear
EndIF
MsgBox(0,"Special Message!","Special Thanks to " & $allHadReplied,$Forever)
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...