[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menu manager/journaling question



jsimmons@cs.sunysb.edu (Jason Simmons) writes:

>I don't think run queue routines are executed during a MenuSelect, since DAs
>are not active during menu selection.

That's only because _GetOSEvent doesn't call _SystemEvent, the routine
responsible for intercepting and acting on desk accessory events.

_MenuSelect calls _GetOSEvent instead of _GetNextEvent because events like
activate events and update events would be bad while a menu is open.

In HKMenus, I got CDAs to work while a menu is open by calling _SystemEvent
myself if _GetOSEvent returned a CDA event. (Notice that the highlight
bar disappears just before going to the CDA menus and reappears right
after)
 ______________________________________________________________________
|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Phillip Vandry | Vandry@Cam.Org | Suicide (n.): What to do if Macs   |
|________________|________________|_______________take over the world__|
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~