At 5:02 PM +0200 04/28/00, Dave Lippincott wrote:
>Not thinking, I decided to piggyback the form ID in the charPtr of the list
>object.  But guess what, you can't retrieve the list pointer because
>FrmGetActiveForm returns NULL within the draw call back!!!  (I'm was
>attempting to preserve the list of entries by adding/modifying only one)

There is no active form when you're drawing a popup list.

Popup lists are their own windows.  It's the popup list's window which is
'active', and this window does not correspond to any form.

You probably want to get the form for your main app view, which is not in
fact active when the popup is being dealt with.  There's an easy way to do
this:

Use FrmGetFormPtr, passing the ID of your main form.  This will return the
form pointer even when the form is not active.

                                --Bob



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

Reply via email to