From: "John Cundall" <[EMAIL PROTECTED]>
Subject: Colour bitmap in Alert


> my question is, what do I have to do to get a colour bitmap to draw in
> colour *in a dialog* ?

That shouldn't cause any problems.  Are you using a Bitmap Family for the
bitmap?  If so, you don't have to check the screen mode; the OS takes care
of selecting the proper bitmap for the current screen depth.

Here's code I use to display a modal dialog box, given the id of a form:

static UInt16 ShowModalDialog( UInt16 frmID )
{
    FormPtr prevForm, thisForm;
    UInt16 btn;

    prevForm = FrmGetActiveForm();
    thisForm = FrmInitForm( frmID );
    FrmSetActiveForm( thisForm );
    btn = FrmDoDialog( thisForm );
    if ( prevForm )
        FrmSetActiveForm( prevForm );
    FrmDeleteForm( thisForm );
    return btn;
} // ShowModalDialog



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