Turning Kinetic into optional

Turning Kinetic into optional

Postby Antonio Linares » Fri Oct 02, 2009 10:23 am

Whis this simple changes, you can modify Class TXBrowse to turn Kinetic scrolling as an optional feature:
Code: Select all  Expand view

...
   CLASSDATA lKinetic    AS LOGICAL INIT .T.  
...
METHOD LButtonDown( nRow, nCol, nFlags ) CLASS TXBrowse
...
      ::lPressed    = ::lKinetic
 

Thats all. Here it is working fine.


To use it as a global setting just do:
Code: Select all  Expand view
TXBrowse():lKinetic := .F.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Turning Kinetic into optional

Postby Antonio Linares » Fri Oct 02, 2009 10:46 am

Same changes are valid for Class TWBrowse.

Also these lines solve some errors that we had in Class TWBrowse:
Code: Select all  Expand view

METHOD LButtonUp( nRow, nCol, nFlags ) CLASS TWBrowse
...
         if nRowAdvanced > 0
            if ::nAt != nil
               ::nAt    -= ( ::nRowPos - 1 )
            endif  
            ::nRowPos = 1
         elseif nRowAdvanced < 0
            if ::nAt != nil
               ::nAt += ( ::nRowCount() - ::nRowPos )
            endif  
            ::nRowPos = ::nRowCount()
         endif
...
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Turning Kinetic into optional

Postby Otto » Fri Oct 02, 2009 12:37 pm

Hello Antonio,
drag & drop is working again.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Re: Turning Kinetic into optional

Postby Antonio Linares » Fri Oct 02, 2009 1:50 pm

Otto,

good, thanks for the feedback :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 87 guests

cron