Try using WinDrawBitmap and WinEraseRectangle instead of FrmShow/HideObject
-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Friday, May 12, 2000 8:08 AM
Subject: Bitmap problems!
>Hello,
>This might be a very trivial question but it just isn't working the way it
should. So I desperately need help!!!
>I have 9 form bitmaps on display which are initially invisible . I set them
to be visible only on a certain condition which i check during runtime. For
this I use the FrmShowObject and FrmHideObject APIs but the problem is that
the display does not get refreshed ie. when I scroll ,it could happen that
the first record after scrolling no longer satisfies the condition and hence
I want the bitmap to be made invisible but this does not happen. The display
is refreshed only when the form is loaded again by calling FrmGotoForm.
Could anyone tell me why? Also when i try to scroll back, i get the error -
'Object not in form' and i have to reset.
>The code goes something like this :
>
>//code for setting all the form bitmaps invisible using FrmHideObject
>FrmHideObject(); // done for bitmaps 1 to 9
>for (n = 0; n <9 ; n ++)
>{
> if (<certain condition is true>)
> {
> FrmShowObject(......); //show the nth form bitmap
> }
>}
>
>Also could someone tell me where i can find a sample showing the way to
dynamically generate a bitmap instead of creating 9 form bitmaps and 9
bitmap resources to assign to them as I am having to do currently?
>Thanx in advance!
>
>Preeti Lovekar
>Indus Software
>India
>
>
>______________________________________________________
>123India.com - India's Premier Portal
>Get your Free Email Account at http://www.123india.com
>
>
>
>--
>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 Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/