Textbox lost focus event

Discussions about the Liberty BASIC language, with particular reference to LB Booster
k6dgw
Posts: 11
Joined: Thu Feb 24, 2022 12:34 am

Textbox lost focus event

Post by k6dgw »

Does LBB provide a way to trap a "lost focus" event in a textbox in a window of type "window" ... such as when TAB is pressed?
guest
Site Admin
Posts: 198
Joined: Tue Apr 03, 2018 1:34 pm

Re: Textbox lost focus event

Post by guest »

k6dgw wrote: Tue Jun 07, 2022 7:43 pm Does LBB provide a way to trap a "lost focus" event in a textbox in a window of type "window" ... such as when TAB is pressed?
Does this Liberty BASIC solution (easily found in a Google search) work?
k6dgw
Posts: 11
Joined: Thu Feb 24, 2022 12:34 am

Re: Textbox lost focus event

Post by k6dgw »

Thanks. I thought about this, and even played around with it some, however I am already using the Timer in a [sort of] critical timing section of the program. I'm really looking for a Win API with a callback when the focus for a given textbox moves to the next control. I'll post here if I find anything. Meanwhile, I will revisit the Timer solution to see if I can fit it into the existing code