Howdy all,
        I have been wrestling over performing a very simple task.  Perhaps
I am not attacking the problem from the right angle.  All I want to do is
stick an icon on a button.  I'm not talking baou tthe notion of icons that
CodeWarrior uses (although maybe I should, I don't understand the
difference between an icon resourse and a bitmap resource).  I have
created some bitmaps in CodeWarrior.  They are not Form bitmaps, just
regular bitmaps.  All I have is their resource ID. Again they aren't
associated with any form.

To display a bitmap I need a BitmapPtr.  So the question is, how do I get
from a Bitmap's resource ID to a BitmapPTr.  

This was my original plan:

        FormPtr myfrm = FrmGetFormPtr(FormID);
        VoidPtr * myfrmPP = &myfrm;
        BitmapPtr mybmptr;


        mybmptr = (BitmapPtr) FrmNewBitmap (myfrmPP,
                                        BitmapRscID,                    
                                        BitmapRscID,
                                        0,      
                                        0);

        WinDrawBitmap ( mybmptr, xpos, ypos);

Where:
        BitmapRscID is a valid RscID for a bitmap I created in
constructor.

        FormID is a valid ID for the form I eventually want to display the
bitmap on.

        xpos, and ypos are words specifiying the x&y location I wish the
bitmap to appear at (over a button).


Any and all help is greatly appreciated.  



                        NOah

--------------------------------------------------------------------------------
Noah J. Ternullo                                [EMAIL PROTECTED]
--------------------------------------------------------------------------------
"As a matter of constitutional tradition, in the absence of evidence to the 
contrary, we presume that governmental regulation of the content of speech
is more likely to interfere with the free exchange of ideas than to
encourage it."                  - Supreme Court Justice John Paul Stevens 
--------------------------------------------------------------------------------


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

Reply via email to