Hi,

Am Montag, den 20.03.2006, 12:30 -0600 schrieb Jesus Reyes:
> ----- Original Message ----- 
> From: "A.J. Venter" <[EMAIL PROTECTED]>
> To: <lazarus@miraclec.com>
> Sent: Monday, March 20, 2006 2:12 AM
> Subject: [lazarus] gridview - scrolling
> 
> 
> > I received the following bug report from a beta tester today:
> > > 4)
> > > Pulling down the scrollbar in the main view doesn't actually *scroll* the
> > > list. Instead, the list remains as is and, when I release the mouse 
> > > button,
> > > jumps to the position of the scrollbar. Very irritating. I would consider
> > > this not just an inconvenience but a bug.
> > >
> 
> This is not but, it's a feature :)
> To change the way the grid reacts when dragging the scrollbar toggle 
> goThumbTracking grid option
> 
> > > 4a)
> > > If I use the arrows of the scrollbar instead and hold the mouse button 
> > > down
> > > on the arrow, nothing happens. It seems, the repeat function isn't 
> > > working.
> > 
> 
> Under gtk pressing the scrollbar arrows does one pixel position increment 
> (I'm not sure if this can be changed), as you probably has thousands of rows 
> every one at least 18 pixel height, you would have to press at least 
> thousands*18 times in order to scroll the grid fully ;). 


GtkObject*  gtk_adjustment_new              (gdouble value,
                                             gdouble lower,
                                             gdouble upper,
                                             gdouble step_increment,
                                             gdouble page_increment,
                                             gdouble page_size);

Creates a new GtkAdjustment.

value :
the initial value.
lower :
the minimum value.
upper :
the maximum value.
step_increment :
the step increment.
page_increment :
the page increment.
page_size :
the page size.
Returns :
a new GtkAdjustment.

step increment is the scrollbar-arrow-increment...

cheers,
  Danny

> 
> 
> > The main view he refers to is TDrawGrid any idea how I can fix it ?
> >
> 
> for 4a, you probably need to make a T*DrawGrid derivated that handle the 
> scrollbars in a different way, for example look at dbgrid on how to do that, 
> specially tcustomdbgrid.UpdateScrollbarRange, in your case one pixel will 
> probably mean one record, so clicking the scrollbar arrows will move one 
> record.
> 
> 
> > Ciao
> > A.J.
> > -- 
> > "there's nothing as inspirational for a hacker as a cat obscuring a bug 
> > by sitting in front of the monitor" - Boudewijn Rempt
> > A.J. Venter
> > Chief Software Architect
> > OpenLab International
> > www.getopenlab.com
> > www.silentcoder.co.za
> > +27 82 726 5103
> > 
> 
> Jesus Reyes A.
> 
> 
> __________________________________________________
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
> Regístrate ya - http://correo.yahoo.com.mx/ 
> 
> _________________________________________________________________
>      To unsubscribe: mail [EMAIL PROTECTED] with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives
> 

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to