[comp.sys.mac.programmer] Custom MDEF problem

dudek@ai.toronto.edu (Gregory Dudek) (08/20/89)

I've been having a problem with a custom MDEF I'm working on & am
frustrated to the point so seeking the net's advice.

  PROBLEM:
    My MDEF puts up a menu that has hierarchical submenus.  When one
of the submenus pops up, the submenu gets erased and re-drawn four times
before stabilizing.  
  DETAILS:
    As far as I can tell, the menu manager is
calling the MDEF with an "mChoose" message and finding that
the current item has a submenu.  It then calls the MDEF with an
"mSize" message and erases the space for the submenu, calls again with a
"mDraw" to draw the submenu, then erases the inside of the submenu &
starts over.  The fact that it does this four times may be related to
the fact that there are four items in the calling menu.

    Any help would be appreciated, even comments like "I've done some
MDEFs and never had such a problem".

    Thanks,
    Greg Dudek.
-- 
Dept. of Computer Science (vision group)    University of Toronto
Nice mailers:  dudek@ai.utoronto.ca
UUCP: {uunet,decvax,linus,pyramid,
		dalcs,watmath,garfield,ubc-vision,calgary}!utai!dudek
ARPA: user%ai.toronto.edu@relay.cs.net