Hey guys.

The code below runs Ok the first time through but gets an 'object not in
form error' the second time at the FrmGetObjectIndex().

Two questions:  whats with the error? I mean it was in the form the first
time through and I didnt remove it. And is this the 'proper' way of changing
the bitmap thats displayed?

I want to change the light bitmap so it looks on or off based on 'temp'.

>>
Word objIndx;
FormBitmapType* pBM;

FormPtr frm = FrmGetActiveForm();

objIndex = FrmGetObjectIndex (frm, DiagACClutchBitMap);
pBM = (FormBitmapType* )FrmGetObjectPtr(frm,objIndex);

  // high is off
  if(temp)
   pBM->rscID = LiteOffBitmap;
  else
   pBM->rscID = LiteOnBitmap;

  FrmShowObject (frm, objIndex);

<<

TIA
-Mike



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