Thanks Richard,

Yes, you were right. the problem was in capturing the bitmap and finally I
managed to solve it. However, I got rid of the gadget and used a simple
rectangle that I draw programatically. 

Thank you again.
Flora

> -----Original Message-----
> From: Richard Burmeister [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, September 26, 2000 5:25 PM
> To:   Palm Developer Forum
> Subject:      Re: Drawing on gadget
> 
> From: "Flora_Mahdavi" <[EMAIL PROTECTED]>
> Subject: RE: Drawing on gadget
> 
> 
> > I'm writing this function based on OS 3.1; and after testing many ways
> in
> > capturing the bitmap I came into conclusion that the problem is before
> even
> > I draw anything. Before doing anything else, I clicked on the button
> that
> is
> > supposed to cause the redrawing of what I have drawn, which is nothing,
> in
> > the gadget; and it draws a strange shape.
> > Due to this I thought already there must have been something in the
> gadget
> > that must be initialized to NULL. BUT the question is  What and where is
> it?
> 
> Flora,
> 
> A gadget has no visual representation when your app is running unless your
> app draws something on it.  Under the OS 3.5 New Feature Set, drawing is
> normally done within a function you write, FormGadgetHandler().  With
> earlier feature sets, this mechanism was not specified (there was no
> FormGadgetHandlerType in the FormGadgetHandler structure).  Prior to 3.5,
> you just draw the gadget whenever you need to (as long as it's *after*
> calling FrmDrawForm).
> 
> The several posts you have made about the problems you have had capturing
> and drawing a bitmap on a gadget lead me to believe that your code for
> capturing the bitmap is the problem.  Why don't you post that code?  Maybe
> someone will be able to spot the problem.
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to