From 64e351fba0f50c326bcc29ad9585a814755bfa8d Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 12 Jun 2020 21:50:55 +0000 Subject: If AppTerminate event recieved, End. Need to work out how to notify the application that this is happening. --- mwidget.mod/mwidget.bmx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mwidget.mod/mwidget.bmx b/mwidget.mod/mwidget.bmx index 51b2573..88487f9 100644 --- a/mwidget.mod/mwidget.bmx +++ b/mwidget.mod/mwidget.bmx @@ -61,6 +61,7 @@ ModuleInfo "Author: Ian Cowburn" ModuleInfo "Version: $Revision$" Import maxgui.maxgui +Import maxgui.drivers Import brl.linkedlist Import brl.event Import brl.timer @@ -2766,12 +2767,21 @@ Type Static EndIf Next Else + Local handled:Int = False + For Local g:TMWidget=EachIn list If g And g.gadget And g.gadget=e.source DebugLog "Passing event to " + g.ToString() g.Handle(e) + handled = True EndIf Next + + If Not handled + If e.id = 259 + End + EndIf + EndIf EndIf EndIf -- cgit v1.2.3