In article <85756@palm-dev-forum>, [EMAIL PROTECTED] says...
> 
> Hi,
> 
> Does anyone know how to have a hack add a bitmap or
> two to the command bar and have it respond to the
> pressing of that bitmap?  Right now I can trap
> SysHandleEvent and check for eventP->eType ==
> menuCmdBarOpenEvent.  However, I'm not sure how to
> handle the MenuCmdBarAddButton in a hack.

Mike, you wouldn't call MenuCmdBarAddButton from a hack, you'd call it 
from a code resource called by the sysNotifyMenuCmdBarOpenEvent 
notification.  You just make your app register for this notification, 
lock and protect the code resources that will respond to this 
notification and to the new notification that gets broadcast when the 
user taps your button.

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Get help at http://palmoswerks.com/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to