Jump to content

NormalTextColor Checkbox Property


KenXeiko

Recommended Posts

Posted (edited)

Hi,

I tried to change the text color of my checkbox with

guiSetProperty(mainGUI["checkbox"][i], "NormalTextColour", tocolor(255, 127, 0)) 

On another topic it says that I'd need to use 'tocolor' for the third argument.

So I did that one, it's supposed to change the color of the checkbox into 'orange' (as seen here), but somehow, the function changed the color into 'pink' instead of 'orange'.

Any idea about this one? #-o

RESOLVED Thanks to MR.S3D for the clue :)

guiSetProperty(mainGUI["checkbox"][i], "NormalTextColour", "FFFF7F00") 

The color is supposed to be:

AARRGGBB -- A = Alpha, R = Red, G = Green, B = Blue 

Regards,

Ken X.

Edited by Guest
Posted
Hi,

I tried to change the text color of my checkbox with

guiSetProperty(mainGUI["checkbox"][i], "NormalTextColour", tocolor(255, 127, 0)) 

On another topic it says that I'd need to use 'tocolor' for the third argument.

So I did that one, it's supposed to change the color of the checkbox into 'orange' (as seen here), but somehow, the function changed the color into 'pink' instead of 'orange'.

Any idea about this one? #-o

Regards,

Ken X.

  
guiSetProperty(mainGUI["checkbox"][i],"NormalTextColour","FFFF7F00") 
  

Posted
Oh, I see. Thank you, it's working well now.

Would you mind to explain me the differences?

guiSetProperty(mainGUI["checkbox"],"NormalTextColour","FFFF7F00")

FF 

is the main

FF7F00 

color code without #

Posted

So, it's actually

AARRGGBB 

I tried to do 00FF7F00 to make sure if the first 2 letters is the alpha, and it's working.

Uhm, oh well, thanks for the help.

Posted
So, it's actually

AARRGGBB 

I tried to do 00FF7F00 to make sure if the first 2 letters is the alpha, and it's working.

Uhm, oh well, thanks for the help.

You're welcome.

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
  • Recently Browsing   0 members

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