I am trying to create dynamic UI ojects for the applcation at run time, but
everytime I call the following functions, the POSE crash for errors. I think
the problem is cause by the ID and rscID at the following function, I feel
confuse this 2 parameters, no matter what I set it to be, my program still
crash, can anyone give me some suggestions?

example:
What should I set for the "id" in the following function?
FormGadgetType *FrmNewGadget (FormType **formPP, UInt16 id, Coord x, Coord
y, Coord width, Coord height)

What should I set for the "id" and "rseID" in the following function?
FormBitmapType *FrmNewBitmap (FormType **formPP, UInt16 ID, UInt16 rscID,
Coord x, Coord y)

my progam is like this:

          FormPtr   NewPtr = frmP;

          FormGadgetType *GadgetType = FrmNewGadget ((&NewPtr), 9999, 50,
50, 20, 20);

         FormBitmapType *A = FrmNewBitmap ((&NewPtr), 1234,  5678, 20 , 20);



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