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=JamesD] Here is my way to add a toolbar icon for your weather app. First I have placed an icon (16x16 size) here. http://www.yourfilelink.com/get.php?fid=485518 It is a couple of clicks into their file system to get it. You will need to make a folder under Skins and name it Default. Put the new icon in that folder. Next is to make a change to toolbars.cfg in your skin. Add this code [code] Weather{ macros(WeatherSite) Open Weather Site weather.bmp weather.bmp weather.bmp } [/code] Also I needed to make some small changes to the macro. Since we are calling weather from the toolbar, it must have a public name. That means we take away the "_" from it. There were some other small changes needed in the macro. There are changes in WeatherSite, ModMenu, and Setaccel. [code] WeatherSite{ $_WeatherURL= urlencode("www.weatherunderground.com"); open($_WeatherURL); #openBg($_Weather); #openNew($_Weather); } _MyPersonal_ModMenu{ $_MyPersonal_Popm = "My Personal"; setmenu("&Tools",popup,$_MyPersonal_Popm,Misc); setmenu($_MyPersonal_Popm,macro,"AIM",_AIM); setmenu($_MyPersonal_Popm,macro,"Faview",_Faview); setmenu($_MyPersonal_Popm,macro,"Keepass",_Keepass); setmenu($_MyPersonal_Popm,macro,"CookieMonster",_CookieMonster); setmenu($_MyPersonal_Popm,macro,"Foxmail",_Foxmail); setmenu($_MyPersonal_Popm,macro,"GUL",_GUL); setmenu($_MyPersonal_Popm,macro,"Kompozer",_Kompozer); setmenu($_MyPersonal_Popm,macro,"Popcorn",_Popcorn); setmenu($_MyPersonal_Popm,macro,"Weather",WeatherSite); setmenu($_MyPersonal_Popm,separator,1); &_MyPersonal_Setaccel; } _MyPersonal_Setaccel{ setaccel("ALT A","macros(_AIM)"); setaccel("ALT C","macros(_CookieMonster)"); setaccel("ALT G","macros(_GUL)"); setaccel("ALT K","macros(_Kompozer)"); setaccel("ALT M","macros(_Foxmail)"); setaccel("ALT P","macros(_Popcorn)"); setaccel("ALT W","macros(WeatherSite)"); } [/code][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development