I built a couple C++ templates that handle this for me.  Basically, I've got
a database template wrappering all the Dm* calls I needed and a table class
to handle a basic one column, variable height row, owner drawn table.  The
table class gets a reference to the database when it's constructed and
relies on it to retrieve the appropriate records.  The key was a late
addition to the database class to "filter" records.  Setting the filter
caused it's next and previous methods to skip non-matching records.  The
table had no idea of the filtering going on.  Worked well.

-- Paul

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Tim
> Astle
> Sent: Monday, July 10, 2000 10:00 AM
> To: Palm Developer Forum
> Subject: Suggestions Please
>
>
> I have a table that I only want certain records to be
> viewable.  Currently I
> have a sort set up to place the files I want at the top of
> the table.  I
> figured if I could count the number of "matches" in my sort,
> I could use
> that somehow to only display the first X records on the
> table.  I tried
> different ways, but still didn't get any luck.
>
> Has anyone ever done anything like this before?  Keep in mind
> I've based my
> tables from the O'Reilly book.  If you need to see some of my
> code, just let
> me know.  I'm kinda stumped right now.
>
> Sincerely,
>
>
> Timothy D. Astle
>
> People on Jolt cola write the funniest things.
>
>                                      A-10 Obedience Guide,
>                                      Kitty Hawk Studios
>
>
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/


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

Reply via email to