Except for one small problem.  The draw callback is used with 4-6 forms.
Anyway, I've got a temporary work-around in place.

Why does it work with OS <= 3.1?

Is this behavior documented in the API reference anywhere?

D

-----Original Message-----
From: Bob Ebert <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Cc: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Friday, April 28, 2000 12:24 PM
Subject: Re: FrmGetActiveForm Weirdness


>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
>
>


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

Reply via email to