The Table Objects: 4.5 Using a Table Object: Custom Scrolling Behavior

Up: GEOS SDK TechDocs| Up | Prev: 4.4 Dragging and Dropping | Next: 4.6 Handling Locator Searches
MSG_TABLE_SCROLL, MSG_TABLE_SCROLL_TO_ROW, MSG_TABLE_SCROLL_SINGLE_UP, MSG_TABLE_SCROLL_SINGLE_DOWN

Auto-scrolling (enabled by adding the TF_ENABLE_AUTO_SCROLLING to TI_ tableFlags ) allows the user to scroll within a Table by clicking within a Table and dragging above or below the current Table bounds. The Table will scroll in the direction that the pen was dragged. Auto-scrolling does not provide any UI to scroll the Table, however. If you want scroll buttons, for example, you will need to take the following steps:

MSG_TABLE_SCROLL is a generic scrolling message that implements a particular scroll operation (passed in the message's TableScrollType parameter). Possible Table scroll types are:

TST_SCROLL_PAGE_UP
TST_SCROLL_PAGE_DOWN
TST_SCROLL_UP
TST_SCROLL_DOWN
TST_SCROLL_TOP
TST_SCROLL_DOWN

 

TST_SCROLL_UP scrolls the Table up one row. Similarly, TST_SCROLL_DOWN scrolls the Table down one row.

You may send MSG_TABLE_SCROLL_TO_ROW if you want the Table to scroll to a particular (zero-based) row. The Table will scroll so as to make that row the first visible row, if possible. MSG_TABLE_SCROLL_SINGLE_UP scrolls the Table up one row. Similarly, MSG_TABLE_SCROLL_SINGLE_DOWN scrolls the Table down one row.


Up: GEOS SDK TechDocs| Up | Prev: 4.4 Dragging and Dropping | Next: 4.6 Handling Locator Searches