Re: pinned menus
Ethan Fischer (allanon@u.washington.edu)
Thu, 28 May 1998 11:32:54 -0700 (PDT)
On Wed, 27 May 1998, Guylhem Aznar wrote:
> > Shuold pinned menus stick around when you make a selection from them? I
>
> Yes they should.
>
> Basically, the model could be xview WM : a pin icon where you can click to
> stick the menu (window op, startmenu ...) to desktop.
To do this requires the pin icon. I've implemented one, but it requires
the XPM libs, which the user can choose not to use. Maybe we should
include a default pin icon?
> start:
> * If you don't click on "pin" icon, the menu is closed after you click on
> something
>
> * Else, "pin" icon changes to "pined" :) & the menu gets a titlebar to be moved
> around.
>
> * If you reclick on "pin" icon, goto start: ;-)
Here's the way it currently works (as of 1.4.5.55N6):
start:
o button down calls up menu, menu starts up "unpinned"
o on button release,
o if in titlebar, title gains "pin" icon, becomes pinned
o else, close the menu
o on button press in pinned menu,
o if in title, start move
o if the menu was not moved, close it
o else, goto start: (ie, menu is unpinned, and will close on release)
If the menu is brought up under keyboard control, it starts pinned.
> What do you think of this ?
>
> I think this is the easyiest.
The other possibility I'm suggesting is:
start:
o button down calls up menu, menu starts up "unpinned"
o on button release,
o if in titlebar, title gains "pin" icon, becomes pinned
o else, close the menu
o on button press in pinned menu,
o if in title, start move
o if the menu was not moved, close it
o else, do function, but don't unpin menu
This is trickier to code, which is why I did it the other way. I'll try
to change to this method.
> BTW, what about shade option for menu to open them like shaded windows ?
Well, I tried for a few hours to make the menus regular AS windows, but
I didn't succeed. There were too many things which depended on the
window being from a different client (ie, not AS). Besides, the reparented
menus were a lot slower. ;)
The current move function for pinned menus is a kludge; we fake an ASWindow
so move_window() will do the move. I don't want to use the shade function
to avoid more kludges.
BTW, should this be on asdev?
----
Ethan Fischer
allanon@u.washington.edu
http://weber.u.washington.edu/~allanon
--
WWW: http://www.afterstep.org/
FTP: ftp://ftp.afterstep.org/
MAIL: http://wormhole.eosys.com/mailing-lists/AfterStep-Info.html
FAQ: http://www.cs.purdue.edu/homes/zamboni/afterstep/FAQ.html
To unsubscribe: echo unsubscribe | mail afterstep-request@eosys.com