🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1538

Window class question

#1538
From: Robert D. Nicholson
Date: Wed, 11 Nov 1992 22:53
26 lines
1352 bytes
I am trying to do the exploding menu things where all menus are 
displayed on the screen at once.

A problem im having is how to get the close-button to appear on
each menu.

The way I see it, is that its rather wierd since IB cannot visually
add and create the close button in IB iself.

Now, there seems to be no method as such to allow me to create the button
in the windows frameView.

I have got a method which manipluates the menus buttonMask but I need to
be able to "redraw" the menu to reflect the new buttonMask, however I think
its necessary for something to go off and actually create me a button and
connect is to close:

So the question is Do I need to send my menus LMOUSE_DRAGGED events to have
it think im dragging a menu hence "tearing off" and the appkit does the rest
or am I missing something.

The behaviour I am looking for is present in AI3.0 and DataPhile/Reality

Cheers.

Besides being a nifty UI feature its also a very interesting appkit excercise.
Technical Details
Message-ID: <1992Nov11.225318.9081@monu6.cc.monash.edu.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!goanna!escargot!monu6!ede978e

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!goanna!escargot!monu6!ede978e
From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
Newsgroups: comp.sys.next.programmer
Subject: Window class question
Message-ID: <1992Nov11.225318.9081@monu6.cc.monash.edu.au>
Date: 11 Nov 92 22:53:18 GMT
Organization: Monash University, Caulfield Campus
Lines: 26