kapiaba Posted December 8, 2021 Report Share Posted December 8, 2021 Alguém já passou por isso? http://forums.fivetechsupport.com/viewtopic.php?f=6&t=41174&sid=dd684ee2aa42aae7fbf3c2053f5f46df Obg. abs. Quote Link to comment Share on other sites More sharing options...
giovanyvecchi Posted December 8, 2021 Report Share Posted December 8, 2021 João, inclua o prg tMetro.prg no seu projeto e comente uma linha que faz fechar. ACTIVATE WINDOW ::oWnd MAXIMIZED //; //ON CLICK ::oWnd:End() Não sei o porque fizeram assim, não tem sentido fechar se clicar fora de algum controle. Quote Link to comment Share on other sites More sharing options...
kapiaba Posted December 8, 2021 Author Report Share Posted December 8, 2021 Estranho Giovany, não faz o mínimo efeito, mesmo que eu coloque um QUIT, é como se o compilador naão assumisse a CLASSE TMETRO.PRG METHOD Activate() CLASS TMetro ACTIVATE WINDOW ::oWnd MAXIMIZED ; ON PAINT ( DrawBitmap( hDC, ::hBitmap, 0, 0, GetSysMetrics( 0 ), GetSysMetrics( 1 ) ),; ::oWnd:Say( 3, 16, ::cTitle,,, ::oFont,, .T. ),; ::oWnd:Say( 2, 130, CDoW( Date() ),,, ::oFont,, .T. ),; ::oWnd:Say( 7, 130, CMonth( Date() ) + " " + ; AllTrim( Str( Day( Date() ) ) ),,, ::oFont,, .T. ) ) // ; // ON CLICK ::oWnd:End() return nil Abs. Quote Link to comment Share on other sites More sharing options...
kapiaba Posted December 8, 2021 Author Report Share Posted December 8, 2021 Giovany, será que não tem que ver com a MDICHILD.RG neste Método? METHOD End() CLASS TMdiChild local lEnd := .f. if ::bValid == nil .or. Eval( ::bValid ) if ::oMenu != nil .and. ! ::lKeepMenu ::oMenu:End() endif ::oWndClient:ChildClose( Self ) if ValType( ::bPostEnd ) == 'B' Eval( ::bPostEnd ) endif lEnd := .t. endif return lEnd Abs Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.