My app does a bit of animation (updates a clock). I am using a Boolean variable
safeToDraw to keep track of winEnter/Exit events. The form works properly when menus
and the Find dialog are up. But when I activate the command bar I don't think a
WinExitEvent is generated (all I see in the log is a menuCmdBarOpenEvent). Thus my
form incorrectly concludes that it's safe to draw, and writes over the command bar.
Here's a code excerpt:
case winEnterEvent:
safeToDraw = (eventP->data.winEnter.enterWindow ==
(WinHandle) FrmGetFormPtr(TimeSynchForm));
break;
case winExitEvent:
if (safeToDraw)
safeToDraw = (eventP->data.winExit.exitWindow !=
(WinHandle) FrmGetFormPtr(TimeSynchForm));
break;
What event is generated when the command bar goes away? Is there supposed to be a
menuCmdBarCloseEvent? If the command bar does not send winEnter/Exit, then a lot of
existing animation code that was written per the old rules will break.
Tested under POSER 3.0a3, EZ debug ROM build 20, MacOS 8.6.
----
Hal Mueller [EMAIL PROTECTED]
Mobile Geographics LLC
Seattle, Washington (206) 297-9575