> POL always performs page scrolling in a grid control accroding to page size setting of vertical scrollbar. > > So, you can easily control it by the following code: > > // Set number of rows in a grid. > Int16 nRowCount; > m_grid.SetRowCount(nRowCount); > // Get default page size. > Int16 nValue, nMin, nMax, nPageSize; > m_grid.GetScrollBar(nValue, nMin, nMax, nPageSize); > // Change default behavior. > m_grid.GetScrollBar(nValue, nMin, nMax, nPageSize - 1); > > If you do not like this standard behavior, please make a more definite suggestion (i.e. redefine ScrollPage() function as virtual, or create a whole new virtual GetPageSize() function).
Thanks, Maks! Good suggestion (did I mention that the POL guys give great technical support>)... I think this should be documented in the tips section for CGrid. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
