>> 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?
That's the right thing to do, if you're going to be drawing to the bottom
area of the screen in response to a menu command that has a shortcut. The
system will call it for you, if you're popping up another form, or some
other things like that which will almost always need it.
What's more, you'll have more situations in which calling MenuEraseStatus()
is appropriate, when running on 3.5 and higher where you'll have the
command toolbar which covers more area.
> well.. the following code is probably better (passing 0 may lead
> to unwanted effects).. :>
>
> MenuEraseStatus(MenuGetActiveMenu());
I just checked the sources from 3.5 back to 3.0 inclusive, and in every
case passing 0 is equal to passing MenuGetActiveMenu(), except passing 0 is
faster :-)
-David Fedor
Palm Developer Support