FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Bugs report & fixes / Informe de errores y arreglos Bug in TScrollBar [Solved]
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in TScrollBar [Solved]
Posted: Wed Mar 11, 2009 12:08 PM
The following methods of TScrollBar should modified as below:

Code (fw): Select all Collapse
   METHOD PageUp() INLINE  ::SetPos( ::GetPos() - ::nPgStep ),;
                           If( ::bPageUp != nil, Eval( ::bPageUp ),)

   METHOD PageDown() INLINE  ::SetPos( ::GetPos() + ::nPgStep ),;
                             If( ::bPageDown != nil, Eval( ::bPageDown ),)


The reason is that they are currently different from the other similar method: they set the new position after evaluating the codeblock. With my change they act as the other methods (GoUp(), etc.).

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug in TScrollBar
Posted: Sat Mar 14, 2009 09:44 AM

Enrico,

I wonder if we will break backwards compatibility with such change.

Also, if the scrollbar position is changed from those codeblocks, then the scrollbar will not be updated.

I am not against such change. Just thinking about possible side effects...

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TScrollBar
Posted: Sat Mar 14, 2009 11:01 AM

Yes, but the other codeblocks are already reversed, If I'm not wrong.

EMG

Continue the discussion