I have 3 problems with touch.prg sample.
Thanks in advance
Otto

Code: Select all | Expand
METHOD DrawEllipse( hDC, nRGBColor, n ) CLASS TRBtn
local hOldBrush := SelectObject( hDC, GetStockObject( NULL_BRUSH ) )
local hPen := CreatePen( hDC, 1, nRGBColor )
DEFAULT n := -1
Ellipse( hDC, n, n, ::nWidth - 1 , ::nHeight - 1 , hPen )
SelectObject( ::hDC, hOldBrush )
DeleteObject( hPen )
return nil
//----------------------------------------------------------------------------//
Code: Select all | Expand
METHOD finger(x) CLASS TScrollPanel
::GoToPos( x )
return nil
//----------------------------------------------------------------------------//
Code: Select all | Expand
oPanel:bLClicked := { || oPanel:SetFocus(),lSlider := .t. }
oPanel:bLButtonUp := { |r,c,f,lDrag | lSlider := .f. }
oPanel:bMMoved := { |r,c,f,lDrag| if( lSlider = .t. , oPanel:finger(r), ) }