|
The table in
the PIM address book doesn't use scrollbars, but arrows instead. I
agree tables are well documented, but tables + scrollbars is another
story (maybe there is something out there, but I didn't find something
useful when I needed to do this). Working with tables and scrollbars is a little bit tricky. Basically, you have to set the maximum value of your scrollbar with the number of elements your table has (actually, your table doesn't contain more elements than it can be shown) and when the user moves the scroll car (the vertical one) you update your table to show the following items (depending on how much the user has moved the scrollbar). For the horizontal scrollbar is a different story. You need to set the maximum value of the scrollbar to the number of columns your table has and hide and show different columns according to the movement of the scroll car. If you scroll to the right, then you have to start hiding the leftmost column and showing the rightmost and viceversa. I'm not sure if you will find sample code, but you can read the examples of tables (understand how tables work) on any tutorial or book and the API reference (the section about scrollbars) of the Palm OS. Hope this helps to point you in the right direction. Miguel Hal Mueller wrote: The first Google hit for "palm table with scrollbars" is the reference manual, which has examples. The code for the PIM address book uses a table. Every PalmOS programming book that I have ever seen has table examples. There are many things in the PalmOS world that are not well documented or that don't work as documented, but tables aren't on that list. RTFM. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ |
- Table with scrollbars Thomas Lösel
- Re: Table with scrollbars Hal Mueller
- Re: Table with scrollbars Thomas Lösel
- Re: Table with scrollbars Hal Mueller
- Re: Table with scrollbars Miguel Angel Sotomayor Hernandez
- Re: Table with scrollbars Rajeev Singh
