Jump to content
Fivewin Brasil

Some radio após pressionar a tecla ALT(RESOLVIDO)


Wellington Vieira

Recommended Posts

Quando eu passo o mouse sobre o do(s) rádio(s), elas voltam e não somem mais.

O meu método colors na minha classe control.prg esta assim:
 

METHOD Colors( hDC ) CLASS TControl

   DEFAULT ::nClrText := GetTextColor( hDC ),;
           ::nClrPane := GetBkColor( hDC ),; 
           ::oBrush   := TBrush():New( , ::nClrPane ),;
           ::lTransparent := .f.

   SetTextColor( hDC, ::nClrText )
   SetBkColor( hDC, ::nClrPane )
   
   if ::lTransparent 
      SetBkMode( hDC, 1 ) // TRANSPARENT 
      if IsAppThemed() 
         if ! Empty( ::oBrush:hBitmap ) 
            SetBrushOrgEx( hDC, nBmpWidth( ::oBrush:hBitmap ) - ::nLeft, nBmpHeight( ::oBrush:hBitmap ) - ::nTop ) 
            FillRect( hDC, GetClientRect( ::hWnd ), ::oBrush:hBrush ) 
         else            //  This condition is added by RAMESH BABU P on Nov. 06, 2006 
           if Upper( ::ClassName() ) $ "TCHECKBOX;TRADIO" 
              DrawPBack( ::hWnd,  hDC ) 
           endif    
         endif 
      endif 
   else      
      if IsAppThemed() .and. Upper( ::ClassName() ) $ "TCHECKBOX;TRADIO" 
         DrawPBack( ::hWnd,  hDC ) 
      endif    
   endif    

return ::oBrush:hBrush

Pode ser algo neste método...

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...