Jump to content
Fivewin Brasil

MDICHILD No Fecha(Close) com METROPANEL.


kapiaba

Recommended Posts

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.

Link to comment
Share on other sites


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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...