Focus on Textboxs

0 favourites
  • 2 posts
  • Hello. So I am making a for a desktop user where when they click a button a certain textbox will have the cursor in it ready to type. When they click a different button, a different textbox will be ready to type in. I have tried using the textbox set focused option, but it didn't work. Can anyone help me please? I have looked around a lot for a solution, but I haven't been able to find anything.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • From your post, it seems to me like you are doing it correctly. When the button is pushed, the event should fire the setFocus action of the textBox you want the cursor in. A possible reason it is not working is, there may be an event later in your event sheet which is getting fired and giving focus to another object. You could test this by making one of the events in question the very last event in the event sheet. Then, if the button works to set the focus when you run it, you will know this is the issue.

    Other than that, I would have to look at your setup to get a better idea of what is going on. If you don't mind posting the capx file, I can take a look at it and see if I can see anything for you. Or you can PM me if you don't want the file public.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)