home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / next / programm / 7162 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  1.3 KB

  1. Path: sparky!uunet!munnari.oz.au!goanna!escargot!monu6!ede978e
  2. From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Window class question
  5. Message-ID: <1992Nov11.225318.9081@monu6.cc.monash.edu.au>
  6. Date: 11 Nov 92 22:53:18 GMT
  7. Organization: Monash University, Caulfield Campus
  8. Lines: 26
  9.  
  10. I am trying to do the exploding menu things where all menus are 
  11. displayed on the screen at once.
  12.  
  13. A problem im having is how to get the close-button to appear on
  14. each menu.
  15.  
  16. The way I see it, is that its rather wierd since IB cannot visually
  17. add and create the close button in IB iself.
  18.  
  19. Now, there seems to be no method as such to allow me to create the button
  20. in the windows frameView.
  21.  
  22. I have got a method which manipluates the menus buttonMask but I need to
  23. be able to "redraw" the menu to reflect the new buttonMask, however I think
  24. its necessary for something to go off and actually create me a button and
  25. connect is to close:
  26.  
  27. So the question is Do I need to send my menus LMOUSE_DRAGGED events to have
  28. it think im dragging a menu hence "tearing off" and the appkit does the rest
  29. or am I missing something.
  30.  
  31. The behaviour I am looking for is present in AI3.0 and DataPhile/Reality
  32.  
  33. Cheers.
  34.  
  35. Besides being a nifty UI feature its also a very interesting appkit excercise.
  36.