I cannot capture the canvas gadget Lost Focus event!
Code: Select all
OpenWindow(0, 500, 0, 50, 25, "test")
CanvasGadget(1, 0, 0, 25, 25)
WinQuit = #False
Repeat
Select WaitWindowEvent()
Case #PB_Event_Gadget
If EventGadget() = 1
If EventType() = #PB_EventType_LostFocus
Debug "Lost Focus" ; <---- This can never be captured!!!
Else
Debug "Got Focus" ; <---- This is captured OK
EndIf
EndIf
Case #PB_Event_CloseWindow
WinQuit = #True
EndSelect
Until WinQuit
End

