Group error when ALT is pressed

Post Reply
User avatar
Maurilio Viana
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil
Contact:

Group error when ALT is pressed

Post by Maurilio Viana »

Antonio,

Using themes, when we redefine a group and press alt key
the content of group was erased. If we use transparent clause it work fine, then we change group.prg lTransparent default to .T.
I think it is the same old folder/button problem...

Regards,
Maurilio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Maurilio,

That was fixed recently. This change is required in source\classes\group.prg

Code: Select all

#define WM_UPDATEUISTATE 296  // 0x0128

METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TGroup

   local nResult

   if ::lDrag .and. nMsg == WM_NCHITTEST      // To have a standard behavior on Clicks
      return DefWindowProc( ::hWnd, nMsg, nWParam, nLParam )
   endif

   if nMsg == WM_UPDATEUISTATE  // Groups and contained controls were erased when pressing ALT
      nResult = Super:HandleEvent( nMsg, nWParam, nLParam )       
      ::oWnd:Refresh()
      return nResult
   endif   

return Super:HandleEvent( nMsg, nWParam, nLParam )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Maurilio Viana
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil
Contact:

Post by Maurilio Viana »

Thanks a lot, Antonio!

Best regards!
Maurilio
Post Reply