Generating events when focus changes

Discussions about the Liberty BASIC language, with particular reference to LB Booster
Sparks
Posts: 10
Joined: Wed Apr 18, 2018 10:07 pm

Generating events when focus changes

Post by Sparks »

Is there a way to trap a focus change event on a Textbox in LBB? Specifically, I'd like to be able to trap the "leave" event when the Textbox loses the focus. Trapping when it gets the focus might have value too. I've been digging through a number of the available resources with no joy yet, thought a question here might be quicker.

Regards,

Fred
guest
Site Admin
Posts: 198
Joined: Tue Apr 03, 2018 1:34 pm

Re: Generating events when focus changes

Post by guest »

Sparks wrote: Tue Apr 09, 2019 10:10 pm Is there a way to trap a focus change event on a Textbox in LBB?
See here. You will probably want to use a SUB timer handler rather than the branch handler used in the examples.
Sparks
Posts: 10
Joined: Wed Apr 18, 2018 10:07 pm

Re: Generating events when focus changes

Post by Sparks »

Thank you, that will work just fine for me