ON RELEASE | EXIT | DESTROY -> :End() ?

Post Reply
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

ON RELEASE | EXIT | DESTROY -> :End() ?

Post by Jimmy »

hi,

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

  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

   MENUITEM "E&xit" ACTION {|| MP_OnExit( oTimer ),oWnd:End(), oWnd := NIL }

but that does not work ... what do i miss ?
greeting,
Jimmy
User avatar
Antonio Linares
Site Admin
Posts: 42595
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 39 times
Been thanked: 86 times
Contact:

Re: ON RELEASE | EXIT | DESTROY -> :End() ?

Post by Antonio Linares »

Dear Jimmy,

> but that does not work ... what do i miss ?

What error do you get ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply