Thomas Hagen Johansen <[EMAIL PROTECTED]> wrote:
>I have looked into implementing Mark's solution,
>but it breaks a lot in my current implementation
>because I already use FrmHideObject/FrmShowObject
>to control if my fields show or hide...

Can you use something like this in your draw routine?
Save the current state of each field, hide the visible
ones, do your drawing, then show the previously visible
fields:

  FieldPtr fooFldP = ...;
  ...other fields...

  FieldAttrType fooAttrs;
  FldGetAttributes(fooFldP, &fooAttrs);
  if (fooAttrs.usable)
    FrmHideObject(frmP, <fooFld index>);
  ...other fields...

  ...call FrmDrawForm(), draw boxes, etc...

  if (fooAttrs.usable)
    FrmShowbject(frmP, <fooFld index>);
  ...etc...

-- 
    -M-                                              [EMAIL PROTECTED]

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