under HMG i have ON RELEASE where i can "clean-up" after ACTIVATE
under FiveWin i have read to use :End()
but how to close Main Windows when ActiveX still running
i have
- Code: Select all Expand view
- DEFINE WINDOW oWnd FROM 0, 0 TO nHeight, nWidth NOSYSMENU NOCAPTION BORDER NONE MENU MainMenu(@oWnd,@oTimer)
ACTIVATE WINDOW oWnd ON INIT MP_OnInit( oTimer ) MAXIMIZED
// clean-up
IF !EMPTY(oWnd)
MP_OnExit( oTimer )
oWnd:End()
ENDIF
RETURN
now i try to "close" from Menu
- Code: Select all Expand view
- MENUITEM "E&xit" ACTION {|| MP_OnExit( oTimer ),oWnd:End(), oWnd := NIL }
but that does not work ... what do i miss ?