Antonio, Gunther
Can you send me the new skins.prg to check if ok ?
Please rename in another extension
Thanks
Richard
static function IsOver( hWnd, nRow, nCol )
local aWndRect := GetWndRect( hWnd )
local aCursorPos := GetCursorPos()
DEFAULT nRow := aCursorPos[ 1 ], nCol := aCursorPos[ 2 ]
return nRow > aWndRect[ 1 ]-2 .and. nRow < aWndRect[ 3 ]+2 .and. ;
nCol > aWndRect[ 2 ]-2 .and. nCol < aWndRect[ 4 ]+2 .and. hWnd == hWndDown
function FWSkinBtnLButtonUp( hWnd, nRow, nCol )
local hDC := GetDC( hWnd )
local oBtn := oWndFromhWnd( hWnd )
if IsOver( hWnd ) .and. lBtnPressed //changed
PostMessage( GetParent( hWnd ), WM_COMMAND, GetWindowLong( hWnd, GWL_ID ), hWnd )
else
ReleaseCapture()
endif
...
...
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 52 guests