Turning Kinetic into optional

Post Reply
User avatar
Antonio Linares
Site Admin
Posts: 42775
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 116 times
Been thanked: 109 times
Contact:

Turning Kinetic into optional

Post by Antonio Linares »

Whis this simple changes, you can modify Class TXBrowse to turn Kinetic scrolling as an optional feature:

Code: Select all | Expand


...
   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

TXBrowse():lKinetic := .F.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 42775
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 116 times
Been thanked: 109 times
Contact:

Re: Turning Kinetic into optional

Post by Antonio Linares »

Same changes are valid for Class TWBrowse.

Also these lines solve some errors that we had in Class TWBrowse:

Code: Select all | Expand


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
Otto
Posts: 6422
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 44 times
Been thanked: 10 times
Contact:

Re: Turning Kinetic into optional

Post by Otto »

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
Antonio Linares
Site Admin
Posts: 42775
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 116 times
Been thanked: 109 times
Contact:

Re: Turning Kinetic into optional

Post by Antonio Linares »

Otto,

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

Antonio Linares
www.fivetechsoft.com
Post Reply