On Wed, 10 Nov 1999, McCollister, Mike wrote:
> Hi,
> 
> I have had a problem with using the menu shortcuts on one of my programs. If
> I do a "/C" for copy the word "copy" shows up at the bottom left of my
> screen. However since I clear some of the fields under the "copy" text at
> the bottom left, the "copy" text gets partially cleared out. After a second
> or two, the rest of the copy dissappears. This always looked messy to me.
> 
> Recently I found that if I use MenuEraseStatus(0) right after I get a menu
> event that this problem goes away. Does anyone know what this is doing?

  well.. the following code is probably better (passing 0 may lead
  to unwanted effects).. :>

   MenuEraseStatus(MenuGetActiveMenu());

  the reason? the Palm OS backs up the area which the "Copy"
  string is drawn to.. when the command is finished.. the data
  that WAS behind it is redrawn.

  if you write to that portion of the screen, then you must
  restore it before you draw to it.. and this function call
  does this.

  the OS performs the MenuEraseStatus call AFTER your
  event handler is done :>

  cheers.

az 
--
Aaron Ardiri 
Lecturer                       http://www.hig.se/~ardiri/
University-College i G�vle     mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN       
Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
Mob: +46 70 656 1143           A/H: +46 26 10 16 11

Reply via email to