Dzsozi (h03) Posted April 4, 2014 Posted April 4, 2014 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!
kevenvz Posted April 4, 2014 Posted April 4, 2014 What you can do is set the alpha of the edibox to 0 and draw a text over it with dxDrawText that contains the text in the editbox
Dzsozi (h03) Posted April 4, 2014 Author Posted April 4, 2014 What you can do is set the alpha of the edibox to 0 and draw a text over it with dxDrawText that contains the text in the editbox It's not working
Dzsozi (h03) Posted April 4, 2014 Author Posted April 4, 2014 I think I have to do something with guiSetProperty, but I don't know what.
iPrestege Posted April 4, 2014 Posted April 4, 2014 Try with 'NormalTextColor' , Not sure but let's hope that it'll work .
Dzsozi (h03) Posted April 4, 2014 Author Posted April 4, 2014 Try with 'NormalTextColor' , Not sure but let's hope that it'll work . 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)
iPrestege Posted April 4, 2014 Posted April 4, 2014 Try with 'NormalTextColor' , Not sure but let's hope that it'll work . 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.
Dzsozi (h03) Posted April 4, 2014 Author Posted April 4, 2014 Try with 'NormalTextColor' , Not sure but let's hope that it'll work . 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.
iPrestege Posted April 4, 2014 Posted April 4, 2014 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.
Dzsozi (h03) Posted April 4, 2014 Author Posted April 4, 2014 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.
Arnold-1 Posted April 5, 2014 Posted April 5, 2014 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.
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