Jump to content

guiCreateEdit and text colour


Recommended Posts

Posted

Helllo, I have a quick question. Is this possible to change the guiCreateEdit's text colour? For example if I set the guiCreateEdit's alpha to 0 the | thingy is still there, and I can see how I write, but I can't see the text. How to change the editbox's text colour? Or how to remove the white background, because I just want to see the text. Thank you!

Posted
Try with 'NormalTextColor' , Not sure but let's hope that it'll work :P.

Not working :( Did I wrote something bad?

tLogUsername = guiCreateEdit(0.38, 0.255, 0.45, 0.06, "", true, tabLogin) 
guiSetProperty(tLogUsername, "NormalTextColour", "FFFFFFFF") 
guiSetAlpha(tLogUsername, 0) 
guiEditSetMaxLength(tLogUsername, 32) 

Posted
Try with 'NormalTextColor' , Not sure but let's hope that it'll work :P.

Not working :( Did I wrote something bad?

tLogUsername = guiCreateEdit(0.38, 0.255, 0.45, 0.06, "", true, tabLogin) 
guiSetProperty(tLogUsername, "NormalTextColour", "FFFFFFFF") 
guiSetAlpha(tLogUsername, 0) 
guiEditSetMaxLength(tLogUsername, 32) 

:/ No but you can try another color try this ffff0000 also i remembered that it's working with memo not sure about edit's .

P.S: Check wiki.

Posted
Try with 'NormalTextColor' , Not sure but let's hope that it'll work :P.

Not working :( Did I wrote something bad?

tLogUsername = guiCreateEdit(0.38, 0.255, 0.45, 0.06, "", true, tabLogin) 
guiSetProperty(tLogUsername, "NormalTextColour", "FFFFFFFF") 
guiSetAlpha(tLogUsername, 0) 
guiEditSetMaxLength(tLogUsername, 32) 

:/ No but you can try another color try this ffff0000 also i remembered that it's working with memo not sure about edit's .

P.S: Check wiki.

Not working :'( Memo's are the same, I can't see the text.

Posted
Sorry dude, By setting the alpha to 0 i don't think that there's a way to do it you can use dx not sure but it should do the job.

Okay, thank you for you answers! I will try something else. Thank you again.

Posted

i have an idea for you, Make a label, and with onClientKey add every letter to that label, and it will only happen if you've clicked on that label, and if you click n any other thing you will lose the label control, that's not hard anyways.

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