Generating events when focus changes

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

Generating events when focus changes

Post by Sparks » Tue Apr 09, 2019 10:10 pm

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: 77
Joined: Tue Apr 03, 2018 1:34 pm

Re: Generating events when focus changes

Post by guest » Tue Apr 09, 2019 10:42 pm

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: 8
Joined: Wed Apr 18, 2018 10:07 pm

Re: Generating events when focus changes

Post by Sparks » Wed Apr 10, 2019 6:52 pm

Thank you, that will work just fine for me

Post Reply