Chris Yourch wrote:

> Hi,
>
> In an app I wrote I was using tables all over the place so I put all the
> table logic in a single table class. In the table class, I made the table
> draw function a virtual callback. In order to locate the "this" pointer for
> a given table class, I store the table id and class instance in a global
> class list. In my global table draw callback function I lookup the table id
> to get the class instance. Remember, the table id is passed to the global
> table draw callback function. From the "this" pointer I then call the
> virtual draw method.

I couldn't do this as some of my tables actually required drawing when globals weren't 
present. No globals = no virtual methods.

-C
--
Christopher Hunt
Class Action Pty. Ltd.

Complete time zone management for the Palm(tm) connected organizer.
Check out http://www.classactionpl.com/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to