Does something like `focus lost` exist for string gadget?
Post date
Mon, 06/09/2025 - 14:34
I know it is possible to detect if the user pressed Enter in a string gadget. Then the WMHI_GADGETUP
for this gadget is sent and the program can react on it. But is it also somehow possible to react if the user for example leaves the gadget by clicking with the mouse outside the gadget somewhere in the window? Something like FocusLost events
known from other systems?
And if not, could the STRINGA_EditHook
be used to notice if the gadget isn't active anymore?
Online Status
Unfortunately there is no sure way at the moment; you can of course read the gadget whenever you need to use its contents. This is something that may be implemented in a future update.