Re: Some menu ideas
Ethan Fischer (allanon@u.washington.edu)
Wed, 13 May 1998 21:04:17 -0700 (PDT)
On Wed, 14 May 1998, Chris Arguin wrote:
> I had it all working, except that certain menus (Quit, Modules, etc...)
> are special cases. The Afterstep code actually looks for a start/Quit, so
> it doesn't find start/99_Quit... The menu displays in the correct place,
> but is non-functional. I could fix that too, but eventually this
> turns into a kludge upon a kludge.
Actually, there is better (though still not perfect) control over menus in
1.4.5.55. I changed the start menu melt so that it no longer has the
special Quit and Desktop menus, and made menus mostly customizable by
passing through files which have a keyword as their first word.
Say you have a start/ that looks like this (filenames are followed by
a colon and their contents):
start/
0_nop:Nop ""
1_restart:Restart "Restart ASWM" afterstep
2_quit:Quit "Exit X-Windows"
3_nop:Nop ""
4_reboot:Exec "Reboot System" exec shutdown -t0 -r now
Applications/
Desktop/
You would end up with a menu like this:
PopUp "Start"
Title "start"
PopUp "Applications"
PopUp "Desktop"
Nop ""
Restart "Restart ASWM" afterstep
Quit "Exit X-Windows"
Nop ""
Exec "Reboot System" exec shutdown -t0 -r now
EndPopUp
The items are still sorted alphabetically by filename, but their name
in the menu isn't set by the filename... Note that there is still no way
to sort the popup names "out of order".
> Oh well... If there is no great demand, I won't bother.
Well, there's already a way to do much of what you want, but I for one
would like to see the script idea (or something similar). Then we could
do away with the special menus left (Looks, Feels, and Pictures). Check
out 1.4.5.55N and tell me what you think! :)
----
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