Jump to content

Recommended Posts

Posted

My gui contains 5 text fields. Since having to click them all manually is tedious (at least to me) I figured I should implement some quality of life improvements. It currently looks like this.

 

Currently they all have the focused color, even though they aren't. On top of fixing this bug, in the end I want them to have the following functionality;

 

- Being able to tab through the text fields, in the same order you read

- When tabbed to, the text will be highlighted, allowing you to clear it

- Right clicking the fields clear them

 

My gui class

 

I tried to implement the right click functionality, but doing that does absolutely nothing (it doesn't even focus them).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.