Group error when ALT is pressed

Group error when ALT is pressed

Postby Maurilio Viana » Mon Mar 13, 2006 2:45 pm

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
Maurilio Viana
 
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil

Postby Antonio Linares » Mon Mar 13, 2006 8:43 pm

Maurilio,

That was fixed recently. This change is required in source\classes\group.prg
Code: Select all  Expand view  RUN
#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
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Maurilio Viana » Tue Mar 14, 2006 10:04 pm

Thanks a lot, Antonio!

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 47 guests