Improvement requests
: K-Meleon Forum
Use this forum to talk about a feature you're missing. Use the bug tracker to report it if necessary.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=jsnj] [quote=siria] ---------------------------------------------- (slightly offtopic, for macro writers only) @jsnj: That's cool with hiding a menu, have tried to understand your code, and it seems as if the menu is simply identified by it's line number?? Never realized this could work, being used that adding menus usually adds them above that number! Have now thrown together a few lines for experimenting, but somehow, no matter which number is given, that always hides just the current top entry, or perhaps there's a mistake somewhere? test_modmenu_inline{ $_x=prompt("","Which menu position? (0,1,2,...)"); setmenu("&Tools",inline,"",$_x); } test_modmenu_popup{ $_x=prompt("","Which menu position? (0,1,2,...)"); setmenu("&Tools",popup,"",$_x); } test_modmenu_rebuild{ # does nothing?? rebuildmenu("&Tools"); } test_modmenu_build{ setmenu("&Edit",macro,"test_modmenu_popup",test_modmenu_popup,0); setmenu("&Edit",macro,"test_modmenu_inline",test_modmenu_inline,1); setmenu("&Edit",macro,"test_modmenu_rebuild",test_modmenu_rebuild,2); setmenu("&Edit",separator,3); } $OnSetup=$OnSetup."test_modmenu_build;";[/quote] I never tested the in-session setmenu function thoroughly. Once I got it to serve my purpose I was satisfied and moved on :) For location identification, you can also use the STRING item name it preceeds instead of the integer. Try that and see if you get more accurate results. Keep in mind that setmenu wasn't necessarily designed to be used this way(within a session) according to documentation. Hiding an entire menu within a session is not a commonly needed or requested feature. But for my needs in the Search+ extension, it worked, caused no side effects and I left 'good enough' alone :) http://home.arcor.de/cool.mckluus/software/kmeleon/project/reference/macrolanguage/ui.html#setmenu[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development