Dzsozi (h03) Posted April 4, 2014 Share 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! Link to comment
kevenvz Posted April 4, 2014 Share 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 Link to comment
Dzsozi (h03) Posted April 4, 2014 Author Share 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 Link to comment
Dzsozi (h03) Posted April 4, 2014 Author Share Posted April 4, 2014 I think I have to do something with guiSetProperty, but I don't know what. Link to comment
iPrestege Posted April 4, 2014 Share Posted April 4, 2014 Try with 'NormalTextColor' , Not sure but let's hope that it'll work . Link to comment
Dzsozi (h03) Posted April 4, 2014 Author Share 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) Link to comment
iPrestege Posted April 4, 2014 Share 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. Link to comment
Dzsozi (h03) Posted April 4, 2014 Author Share 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. Link to comment
iPrestege Posted April 4, 2014 Share 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. Link to comment
Dzsozi (h03) Posted April 4, 2014 Author Share 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. Link to comment
Arnold-1 Posted April 5, 2014 Share 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. 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