How do I check if Textbox is focused

Get help using Construct 2

Post » Mon May 26, 2014 12:05 am

Seems like is not a condition, it only has Compare text, On Clicked, on Double Clicked and on text changed. Is there a way to check if a textbox is focused?
Image Image Image Image
B
18
S
1
Posts: 89
Reputation: 904

Post » Mon May 26, 2014 4:07 am

It doesn't have a built in condition, but you could make your own. Add a boolean instance variable to the textbox named focused then just do:

-Left Mouse Button Clicked
- Mouse is overlapping textbox
-> set textbox focused to true
- Else
-> set textbox focused to false
B
46
S
14
G
7
Posts: 603
Reputation: 8,096


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Ryan Kocourek and 2 guests