'LinKin Posted April 7, 2015 Share Posted April 7, 2015 Hello, I want to set the caret index in an edit box (so that when the player opens the main window, he can start typing in the editbox without having to click on it first) I tried -- GUI set Focus (editBox) guiEditSetCaretIndex(editBox, 0) But doesn't work Link to comment
Mr_Moose Posted April 7, 2015 Share Posted April 7, 2015 The active element must be brought to the front, that's what causing the focus in the first place. Try this: guiBringToFront(editBox) guiEditSetCaretIndex(editBox, 0) Link to comment
'LinKin Posted April 7, 2015 Author Share Posted April 7, 2015 Works, but now when closing the window, the cursor doesn't dissapear (because the editBox is focused) 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