Hi Joe,

I have a situation where the user selects "undo" from
the menu by doing a shortcut 'U'.  This causes a small
pop-up bar at the very bottom of the screen.  The routine
handler that this shortcut'U' calls then draws to the screen.

The problem is that the handler routine starts drawing
BEFORE the OS has removed the pop-up shortcut bar at
the bottom of the screen.  So, my routine starts drawing
on top of the pop-up bar.  When the OS finally removes
the pop-up bar, it also removes the bitmap data that
my handler just drew.

My solution was to introduce a small delay before my 
handler starts drawing to the screen to give the OS time
to remove the pop-up bar from the screen.  This works perfectly,
but I don't want this delay unless the user selects the
menu option via shortcut 'U'.

-Robert
http://www.bapsoft.com (BapSoft)


>>I suppose you could intercept vchrMenu and vchrCommand
>>in your AppEventLoop, but why would you want to? The
>>OS does a bunch of work for you just so you can put
>>all your menu handling code in the menuEvent case in
>>your MainFormHandleEvent.

> I'm trying to programmatically determine if
> the user selected a menu entry via a shortcut
> stroke or by directly selecting via the
> pull-down menus.



__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.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