KenXeiko Posted January 12, 2013 Share Posted January 12, 2013 (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? 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 January 12, 2013 by Guest Link to comment
MR.S3D Posted January 12, 2013 Share Posted January 12, 2013 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? Regards, Ken X. guiSetProperty(mainGUI["checkbox"][i],"NormalTextColour","FFFF7F00") Link to comment
KenXeiko Posted January 12, 2013 Author Share Posted January 12, 2013 Oh, I see. Thank you, it's working well now. Would you mind to explain me the differences? Link to comment
MR.S3D Posted January 12, 2013 Share Posted January 12, 2013 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 # Link to comment
KenXeiko Posted January 12, 2013 Author Share Posted January 12, 2013 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. Link to comment
MR.S3D Posted January 12, 2013 Share Posted January 12, 2013 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. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now