xScatta Posted July 14, 2014 Share Posted July 14, 2014 Hey Guys! I have a small question. Is there a way to place GUI editbox and then make the editbox invisible but text in it visible? Link to comment
Metall Posted July 14, 2014 Share Posted July 14, 2014 You could use dxDrawText to draw a text on your screen, but you want to be able to write in it don't you? If so, I have no idea. dxDrawText Link to comment
xScatta Posted July 14, 2014 Author Share Posted July 14, 2014 Yeah i mean to keep the text in editbox visible but the just box invisible. Link to comment
Max+ Posted July 15, 2014 Share Posted July 15, 2014 well , iam not sure about this , but try this and see if it's working or not , --Example editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, "", true ) guiSetVisible (editBox, false ) Link to comment
MTA Team botder Posted July 15, 2014 MTA Team Share Posted July 15, 2014 It's possible to make the editbox transparent, but that works only when it is read-only. Link to comment
xScatta Posted July 15, 2014 Author Share Posted July 15, 2014 @Max+ It don't works cause the text is not visible too. @Necktrox But i wanna to have the text editable at all. Link to comment
Max+ Posted July 15, 2014 Share Posted July 15, 2014 @Max+ It don't works cause the text is not visible too. @Necktrox But i wanna to have the text editable at all. Ok ,there is another way , try setting the alpha until it's hidden , guiSetAlpha Link to comment
xScatta Posted July 15, 2014 Author Share Posted July 15, 2014 @Max+ Text is invisible too. Link to comment
Max+ Posted July 15, 2014 Share Posted July 15, 2014 @Max+Text is invisible too. well i guess you can't but if you want the text Only , why don't you use this , guiCreateLabel it Only Show 'Text' but you can't change it, unless you use functions , or somthing to change it any time .. Link to comment
xScatta Posted July 15, 2014 Author Share Posted July 15, 2014 @Max+ I want to make it editable for player. Link to comment
Controlled Posted July 15, 2014 Share Posted July 15, 2014 Then do what he said. Make a label and make a function that allows the player to edit it. Like change it to a edit box to change the text, then a button that applies the text to the label and removes the edit box Link to comment
Et-win Posted July 15, 2014 Share Posted July 15, 2014 Make it invisible and just place a label infront of it. Use event onClientGUIChanged and then check or it was the editbox, then set the text of the label with guiSetText. 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