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

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

Postby Jimmy » 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: 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 ?
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

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

Postby Antonio Linares » Tue Jul 19, 2022 5: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 28 guests