> From: Jeff Ishaq [mailto:[EMAIL PROTECTED]]
> I'd like to display an hourglass on the form during a short
> (1 to 1.5-second) operation, and then undraw it.
> The first thing I thought of was creating a bitmap family
> in C'Tor, and using DmGetResource() and WinDrawBitmap().

Here's a different approach that may be easier: create a small form in
Constructor that contains just the bitmap.  Load and draw this little form
over your main form when needed.  The OS will handle saving and restoring
the bits behind it (or sending a frmUpdate event) automatically.

Make this little hourglass form the same size as the bitmap, centered on
screen, with no title.  That way it will look the way you want.

The code to hide/show it would be something like this:

    FormType *hourglass = FrmInitForm( Hourglass_Form_ID );
    FrmDrawForm( hourglass );

    Do_Slow_Operation();

    FrmEraseForm( hourglass );
    FrmDeleteForm( hourglass );

-slj-


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