My app displays a text message on the screen when it
starts up, depending on whether it is a registered or
a demo version.  The text is in a label which I either
show or hide with FrmShowObject or FrmHideObject (plus
I do CtlSetUsable if the ROM version is < 3.2).  Text
on one of the labels gets corrupted on all OS versions
I have tested prior to 3.3, but works fine on 3.3 or
better (I don't have a 3.2 ROM).  

Is this possibly the result of the prvFixupPointers
bug, or is there something wrong with my code (below)?
 If it is due to prvFixupPointers, do you have any
suggestions for work-arounds?  (I'm thinking I should
probably just use WinDrawChars instead of labels.)

static void SafeHideObject( FormPtr frmP, UInt16
objectIndex )
{
  static UInt32 romVer = 0;
  ControlType * cp;

  if ( !romVer )
    FtrGet( sysFtrCreator, sysFtrNumROMVersion,
&romVer );

  if ( romVer < kSysVersion32 )
  {
    cp = (ControlType *) FrmGetObjectPtr( frmP,
objectIndex );
    if ( cp )
      CtlSetUsable(cp, false);
  }
  FrmHideObject(frmP, objectIndex);
}


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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