Have a look in POL(palm object library) which contains both tutorial and
sample code for horizontal and vertical scrollbar with tables.

On 2/14/07, Miguel Angel Sotomayor Hernandez <[EMAIL PROTECTED]>
wrote:
>
> 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.
>
> H
>
>
>
>
> --
> For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
>



-- 
Rajeev Kumar Singh
Ideavate Solution
Silver Sanchora RNT Marg
Indore (MP)
09893246044

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to