OK - tables seem to me to be a poor relation in the OS UI.  You have to do 
practicaly everything yourself.

So, create the table resource with a size such that it can fit on the form.  
e.g. Vrows.  Create a scrollbar resource the same height as the table.

In the app, use SysCreateDatabaseList to obtain a list of the databases you 
want in the table.  The total number of entries is Trows.  Initially populate 
the table with the Vrows worth of database names.  Initializse the scrollbar, 
setting sclval = 0, sclMax = Trows - Vrows, sclPage = Vrows.

When the user operates the scrollbar, retrieve sclval from the scrolbar. Use it 
to repopulate the table, starting at the sclval entry.

Use sclRepeatEvent to detect scollbar movement.
Use tblSelectEvent to detect the user choice of a table entry.

Of course, this needs modifying if Trows is < Vrows.
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to