use FrmSetGadgetData to assign bitmap pointer to gadget

set gadget handler with FrmSetGadgetHandler to your callback function (it has
parameters (gadgetp, cmd, paramp)

in this callback function when you will get cmd==formGadgetDrawCmd draw bitmap
with WinPaintBitmap((BitmapType
*)(gadgetp->data),gadgetp->rect.topLeft.x,gadgetp->rect.topLeft.y)

thats all

code is not tested, i wrote it only to this mail, but it should give you an idea




Rabbi wrote:
> I want to know how to asign a bitmap to a gadget so that it can be seen in 
> frmopen event.
> 
> any help would b appriciated
> 

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to