Hi Gunnar Sig,

In Palm OS 3.5 or above, one should perform the custom drawings after FrmDrawForm() is performed. Thus, you have to move your WinDrawBitmap() and other drawing codes in your ReportFormInit() to after FrmDrawForm() in both frmUpdateEvent and frmOpenEvent handler.

You also want to perform your custom drawing in frmUpdateEvent handler and remember to return true.

I hope it fixes your problems.

Tony Cheung

P.S. BTW, I am amazed that you post your whole program, what does it do?

Gunnar Sig wrote:
Hello,
I have just started to work on a Palm OS development.
I have a application that works well on a OS4 but when I run it on OS5 I
have some trouble with "WinDrawBitmap"  when it is in the initialation for
one of the forms.  The code for this form is here and the problem occurs
when the function "ReportFormInit" is called.

I would be thankful if someone can give me some information what can be
wrong here.


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

Reply via email to