David is right.  In particular, the number of rows is ALWAYS the maximum number of 
rows you EVER want to display on screen.  When you wish to have more rows than fit 
onto the screen, you actually scroll the data through your rows (not the rows through 
the screen) -- i.e., now your row #1 points to the second data item, etc.

-bob mckenzie, palmsource pdx

p.s.  his advice as to custom table items is also spot-on.

-----Original Message-----
From: David Eyler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 10:25 AM
To: Palm Developer Forum
Subject: Re: tables - looking for advise


Christy,

1) it sounds like you should probably give the table the maximum number of
rows that will ever show on the screen, and set them to not usable at run
time if you don't need them

2) and 3) If the text isn't editable, I think you would be better off just
using a customTableItem for the text cells.  Then you can draw whatever you
want in each cell dynamically in the callback routine that you specify with
TblSetCustomDrawProcedure().

"christy" <[EMAIL PROTECTED]> wrote in message
news:104730@palm-dev-forum...
>
> Finally, I am "ready" to code the search results. I am
> glad that I am a lot more proficient in areas other
> than Palm. Otherwise I'd be fired by now.
>
> Anyhow, this is what I have in mind. For every match,
> I would display it in 1 row with 3 columns (three
> boxes next to each other). In every cell (each box), I
> need to display 4 lines. I can only fit 2 rows without
> scrolling in this case (I have buttons and other
> things). Questions:
>
> 1. How many rows do I set my table at design time? 1
> row, 2 rows or the maximum rows anticipated?
>
> 2. Do I create 4 labels for the 4 lines per cell in
> design time as place holder and update them in the
> code?
>
> 3. All text are displayed from the database (not
> editable). They should be labels but I don't need the
> : at the end. Should I use textTableItem?
>
> Thank you very much in advance.
>
>
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
>



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


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

Reply via email to