Jump to content

Put focus on an edit box when opening the window


'LinKin

Recommended Posts

Posted

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

Need a clanwar script? Click here!

Do you want some free scripts for your DD server? Visit my website.

Posted

Works, but now when closing the window, the cursor doesn't dissapear (because the editBox is focused)

Need a clanwar script? Click here!

Do you want some free scripts for your DD server? Visit my website.

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