Well ... Just spend an hour or so trying to use the method
proposed by Mark with no luck. I create all my GUI dynamically
which makes the otherwise simple proposal difficult to implement.

If there is no other ways to do it, I must look at it again later in
the project... damn! I hate screen flickering ... :-(

Mark! Thank you very much for your proposal.


Regards,
Thomas Hagen

-----Original Message-----
From: Mark Smith [mailto:[EMAIL PROTECTED]]
Sent: 25. april 2001 00:41
To: Palm Developer Forum
Subject: Re: Screen flickering


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/

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