FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ON RELEASE | EXIT | DESTROY -> :End() ?
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
ON RELEASE | EXIT | DESTROY -> :End() ?
Posted: Mon Jul 18, 2022 11:39 PM
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 (fw): Select all Collapse
   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 (fw): Select all Collapse
   MENUITEM "E&xit" ACTION {|| MP_OnExit( oTimer ),oWnd:End(), oWnd := NIL }

but that does not work ... what do i miss ?
greeting,

Jimmy
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: ON RELEASE | EXIT | DESTROY -> :End() ?
Posted: Tue Jul 19, 2022 05:27 AM

Dear Jimmy,

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

What error do you get ?

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion