Development :  K-Meleon Web Browser Forum
K-Meleon development related discussions. 
Zoom Buttons Help
Posted by: Rapido
Date: February 13, 2008 06:00PM

Hi! I've got a small problem that I need some help with.
I've got a Zoombar with buttons and when I mark it with my pointer it should say:
Rightclick for more options but as it is now this is not showing and when I rightclick nothing happens. And in my toolbar.cfg it looks like this:

&Zoom Buttons{

Zoom In{
%ifplugin Zoom In
Zoom In(ZoomIn)|_Zoom_In
Zoom In. Right-click for more options.
%else
ID_FONT_INCREASE
Zoom In Text
%endif
zoomhot.bmp[0]
zoomcold.bmp[0]
}

Zoom Out{
%ifplugin Zoom Out
Zoom Out(ZoomOut)|_Zoom_Out
Zoom Out. Right-click for more options.
%else
ID_FONT_DECREASE
Zoom Out Text
%endif
zoomhot.bmp[1]
zoomcold.bmp[1]
}

}

}

Can someone tell me what's wrong?

Yours: Rapido

Options: ReplyQuote
Re: Zoom Buttons Help
Posted by: kko
Date: February 13, 2008 06:23PM

There are no "Zoom In" and "Zoom Out" plugins and you are calling non-existent macros.

Copy the zoom buttons from one of the default skins and adapt the bitmap names/indexes.

Options: ReplyQuote
Re: Zoom Buttons Help
Posted by: Rapido
Date: February 13, 2008 06:51PM

How do you mean kko? I'm not sure I understand exactly. I borrowed the zoombuttons.bmp and cfg from Phenity skin/theme plus the fact that I borrowed mailbuttons.bmp and cfg to from the same place and it worked well with earlier versions of K-Meleon. But now they don't work at all.
So can you show me what you are talking about. Here is what mail.cfg looks like:
Mail{

Mail{
%ifplugin mail
mail(Mail)|Mail and News
Open mail client, Right-Click for more options
%else
ID_NAV_MAIL
%endif
MailBarHot.bmp[16]
MailBarCold.bmp[16]
MailBarDead.bmp[16]
}

# Mail, Read Mail{
# Mail(Mail, Read Mail)
# Mail, Read Mail
# MailBarHot.bmp[3]
# MailBarCold.bmp[3]
# MailBarDead.bmp[3]
# }
-

EmailURL,Send Page As Link{
EmailURL(EmailURL, Send Page As Link)
Send Page As Link
MailBarHot.bmp[10]
MailBarCold.bmp[10]
MailBarDead.bmp[10]
}

EmailText, Send Selected Text{
EmailText(EmailText, Send Selected Text)
EmailText
MailBarHot.bmp[9]
MailBarCold.bmp[9]
MailBarDead.bmp[9]
}

# Create New Mail, Open mail client{
# %ifplugin macros
# Open mail client(Mail Client, Create New Mail)| Open mail client
# %else
# ID_NAV_Mail
# %endif
# MailBarHot.bmp[5]
# MailBarCold.bmp[5]
# MailBarDead.bmp[5]
}

-

# News, Read News{
# macros(News, Read News)
# News, Read News
# MailBarHot.bmp[12]
# MailBarCold.bmp[12]
# MailBarDead.bmp[12]
# }
#
# RSS, RSS News Feeds{
# macros(RSS, RSS News Feeds)
# RSS, RSS News Feeds
# MailBarHot.bmp[20]
# MailBarCold.bmp[20]
# MailBarDead.bmp[20]
# }
# -

# MCFG, Configure Mail...{
# macros(MCFG, Configure Mail...)
# MCFG, Configure Mail...
# MailBarHot.bmp[17]
# MailBarCold.bmp[17]
# MailBarDead.bmp[17]
# }
#
# NCFG, Configure News...{
# macros(NCFG, Configure News...)
# NCFG, Configure News...
# MailBarHot.bmp[2]
# MailBarCold.bmp[2]
# MailBarDead.bmp[2]
# }

}

&Zoom Buttons{

Zoom In{
%ifplugin zoom in
ZoomIn(ZoomIn)Right-click for more options.
%else
ID_FONT_INCREASE
%endif
zoomhot.bmp[0]
zoomcold.bmp[0]
}

Zoom Out{
%ifplugin zoom out
ZoomOut(ZoomOut)Right-click for more options.
%else
ID_FONT_DECREASE
%endif
zoomhot.bmp[1]
zoomcold.bmp[1]
}
And here how it looks in Phoenity:
%ifplugin macros

Mail/&News Buttons{

Mail{
macros(Mail_ReadMail)|&Mail And News
Read Mail. Right-click for more options.
mailnewshot.bmp[0]
mailnewscold.bmp[0]
}

# News{
# macros(Mail_ReadNews)
# Read News
# mailnewshot.bmp[1]
# mailnewscold.bmp[1]
# }

# RSS{
# macros(RSS)
# Read RSS Feeds
# mailnewshot.bmp[2]
# mailnewscold.bmp[2]
# }

}

%endif


&Zoom Buttons{

Zoom In{
%ifplugin macros
macros(Zoom_In)|_Zoom_In
Zoom In. Right-click for more options.
%else
ID_FONT_INCREASE
Zoom In Text
%endif
zoomhot.bmp[0]
zoomcold.bmp[0]
}

Zoom Out{
%ifplugin macros
macros(Zoom_Out)|_Zoom_Out
Zoom Out. Right-click for more options.
%else
ID_FONT_DECREASE
Zoom Out Text
%endif
zoomhot.bmp[1]
zoomcold.bmp[1]
}

}

Yours: Rapido

Options: ReplyQuote
Re: Zoom Buttons Help
Posted by: kko
Date: February 13, 2008 07:38PM

Quote
Rapido
How do you mean kko?

Copy & Paste, Rapido! Copy & Paste!

Quote
Rapido
I'm not sure I understand exactly.

Errm, well, as I can see you managed to copy the code for the "&Zoom Buttons" toolbar from your custom toolbars.cfg and to paste it into your browser. Copying this code from a default (Phoenity) toolbars.cfg into your custom toolbars.cfg works exactly the same - you just have to replace the old code. Do you think that you're able to do that?

Quote
Rapido
I borrowed the zoombuttons.bmp and cfg from Phenity skin/theme...

Aha, you were able to do that! Do you think that you're still able to do it? smiling smiley

Quote
Rapido
...it worked well with earlier versions of K-Meleon.

Hardly. The code in your first post cannot work in any version of K-Meleon. grinning smiley

Options: ReplyQuote
Re: Zoom Buttons Help
Posted by: Rapido
Date: February 13, 2008 10:21PM

Well I did what you suggested and got the mailbar to work but nope the
zoombuttons is still out of use. No mather what I try they will not work
I just don't know what to do kko. Could someone give some advice please?

Yours: Rapido

Options: ReplyQuote
Re: Zoom Buttons Help
Posted by: Fred
Date: February 14, 2008 12:50AM

In your toolbar.cfg you should have only (for 1.5a and 1.1.x) :

&Zoom Buttons{

Zoom In{
%ifplugin macros
macros(Zoom_In)|_Zoom_In
Zoom In. Right-click for more options.
%else
ID_FONT_INCREASE
Zoom In Text
%endif
zoomhot.bmp[0]
zoomcold.bmp[0] }

Zoom Out{
%ifplugin macros
macros(Zoom_Out)|_Zoom_Out
Zoom Out. Right-click for more options.
%else
ID_FONT_DECREASE
Zoom Out Text
%endif
zoomhot.bmp[1]
zoomcold.bmp[1]
}

}

I see, that you have two different entries for
the Zoom functions, one of them calling up
a plugin zoomin and zoomout, which does not
exist. The plugin is macros. So the "if plugins"
part is skipped, and only ID_FONT_INCREASE and
ID_FONT_DECREASE are executed.
Use only the Zoom Buttons entry above calling for
the plugin macros to get the right click functions,
and delete the unnecessary part.
Regards
Fred

Options: ReplyQuote
Re: Zoom Buttons Help
Posted by: Rapido
Date: February 14, 2008 10:04AM

How do you mean exactly? Can somebody show me how it should look like?
I've tried almost everything and it aint working for me.

Yours: Rapido

Options: ReplyQuote
Re: Zoom Buttons Help
Posted by: Rapido
Date: February 14, 2008 10:06AM

Oh! I forgot to say that not all in mailbar is working but I'll get it to work I hope.

Yours: Rapido

Options: ReplyQuote
Re: Zoom Buttons Help
Posted by: Fred
Date: February 14, 2008 10:40AM

This is how your toolbars.cfg should look.
Note: only for KM 1.1.3 or KM 1.1.4 and probably 1.5a,
the 1.0.x versions and earlier have different macros.
I have taken out the disabled # hatched parts of the file.
Don't forget the closing } . Starts here :

&Main Bar{

Back{
ID_NAV_BACK
Go back one page
mainbarhot.bmp[0]
mainbarcold.bmp[0]
mainbardead.bmp[0]
}

Forward{
ID_NAV_FORWARD
Go forward one page
mainbarhot.bmp[1]
mainbarcold.bmp[1]
mainbardead.bmp[1]
}

Stop{
ID_NAV_STOP
Stop loading this page
mainbarhot.bmp[2]
mainbarcold.bmp[2]
mainbardead.bmp[2]
}

Reload{
%ifplugin macros
ID_NAV_RELOAD|Reloa&ding
Reload this page. Right-click for more options.
%else
ID_NAV_RELOAD
Reload this page
%endif
mainbarhot.bmp[3]
mainbarcold.bmp[3]
mainbarcold.bmp[3]
}

Home{
%ifplugin macros
macros(Home)|Ho&me
Open Home Page or Startup Group. Right-click for more options.
%else
ID_NAV_HOME
Open Home Page
%endif
mainbarhot.bmp[4]
mainbarcold.bmp[4]
mainbarcold.bmp[4]
}

%ifplugin bookmarks
Bookmarks{
bookmarks(Edit)|&Bookmarks
Edit Bookmarks. Right-click to view Bookmarks menu.
mainbarhot.bmp[5]
mainbarcold.bmp[5]
mainbarcold.bmp[5]
}
%endif

%ifplugin favorites
Favorites{
favorites(Edit)|F&avorites
Explore Favorites. Right-click to view Favorites menu.
mainbarhot.bmp[5]
mainbarcold.bmp[5]
mainbarcold.bmp[5]
}
%endif

%ifplugin hotlist
Hotlist{
hotlist(Edit)|H&otlist
Edit Hotlist. Right-click to view Hotlist menu.
mainbarhot.bmp[5]
mainbarcold.bmp[5]
mainbarcold.bmp[5]
}
%endif


%ifplugin history
History{
history(View)|Histor&y
View History. Right-click for more options.
mainbarhot.bmp[7]
mainbarcold.bmp[7]
mainbarcold.bmp[7]
}
%endif

Print{
ID_FILE_PRINT|Print
Print this page. Right-click for more options.
mainbarhot.bmp[8]
mainbarcold.bmp[8]
mainbarcold.bmp[8]
}





}


%ifplugin macros

Mail/&News Buttons{

Mail{
macros(Mail_ReadMail)|&Mail And News
Read Mail. Right-click for more options.
mailnewshot.bmp[0]
mailnewscold.bmp[0]
}
}

%endif


&Zoom Buttons{

Zoom In{
%ifplugin macros
macros(Zoom_In)|_Zoom_In
Zoom In. Right-click for more options.
%else
ID_FONT_INCREASE
Zoom In Text
%endif
zoomhot.bmp[0]
zoomcold.bmp[0]
}

Zoom Out{
%ifplugin macros
macros(Zoom_Out)|_Zoom_Out
Zoom Out. Right-click for more options.
%else
ID_FONT_DECREASE
Zoom Out Text
%endif
zoomhot.bmp[1]
zoomcold.bmp[1]
}

}


&Search Buttons{

Search{
%ifplugin macros
# EITHER:
macros(Search)|_Search_Engines
# OR:
# macros(Search)|&Web Search
Type a word or phrase in the URL Bar, then click this button or press Ctrl+G to search the Web. Right-click to choose different search engine.
%else
ID_NAV_SEARCH
Search the Web
%endif
searchhot.bmp[0]
searchcold.bmp[0]
}

}


&Go Buttons{

Go{
%ifplugin macros
macros(Go_Selected)|_Go
Go to URL. Right-click for more options.
%else
ID_NAV_GO
Go to URL
%endif
gohot.bmp[0]
gocold.bmp[0]
}

%ifplugin macros
Up{
macros(Go_Up)|_Up
Go up one directory level. Right-click for more options.
gohot.bmp[1]
gocold.bmp[1]
}
%endif

}


Layer/&Window Buttons{

New{
%ifplugin layers
layers(Open)|New
New Layer. Right-click for more options.
%else
ID_NEW_BROWSER
New Window
%endif
layerwindowhot.bmp[2]
layerwindowcold.bmp[2]
}

Close{
%ifplugin layers
layers(Close)|Close
Close Layer. Right-click for more options.
%else
ID_FILE_CLOSE|Close
Close Window. Right-click for more options.
%endif
layerwindowhot.bmp[3]
layerwindowcold.bmp[3]
}

}


%ifplugin macros|privacy

&Privacy Bar(64,13){

%ifplugin macros

Cookies{
macros(pref_ToggleCookies)
Block Cookies
privhot.bmp[2]
privcold.bmp[2]
}

Images{
macros(pref_ToggleImages)
Block Images. Press F9 to toggle.
privhot.bmp[3]
privcold.bmp[3]
}

Java{
macros(pref_ToggleJava)
Block Java Applets
privhot.bmp[4]
privcold.bmp[4]
}

JavaScript{
macros(pref_ToggleJavaScript)
Block JavaScript. Press F7 to toggle.
privhot.bmp[5]
privcold.bmp[5]
}

Popups{
macros(pref_TogglePopups)
Block Popups. Press F8 to toggle.
privhot.bmp[6]
privcold.bmp[6]
}


%endif

%ifplugin privacy

Clear Cache{
privacy(ClearCache)
Clear Cache
privhot.bmp[8]
privcold.bmp[8]
}

Clear Cookies{
privacy(ClearCookies)
Clear Cookies
privhot.bmp[9]
privcold.bmp[9]
}

Clear Passwords{
privacy(ClearSignon)
Clear Passwords
privhot.bmp[11]
privcold.bmp[11]
}

%endif

%ifplugin macros & privacy
Clear All{
macros(kPrivacy_ClearAll)
Clear All
privhot.bmp[13]
privcold.bmp[13]
}
%endif

%ifplugin macros

Kill Flash{
macros(JS_killFlash)
Kill Flash Objects
privhot.bmp[14]
privcold.bmp[14]
}

User Agent{
ID_APP_ABOUT|&User Agent
Check Browser Identity. Right-click to choose different User Agent.
privhot.bmp[16]
privcold.bmp[16]
}

%endif

}

%endif

Options: ReplyQuote
Re: Zoom Buttons Help
Posted by: Fred
Date: February 14, 2008 10:46AM

P.S.:

Make sure the macros plugin is loaded in Preferences.
As kko said : the names of the bitmaps must fit, if you use
a different skin . This toolbars.cfg is from Phoenity.
Good luck.
Fred

Options: ReplyQuote
Re: Zoom Buttons Help
Posted by: Rapido
Date: February 14, 2008 12:39PM

Well as I told at the beginning of my post I'm using this toolbars.cfg and the macro is not working. In zoom.kmm the names and macros is different from toolbar.cfg so it has to be reworked to work at least for me. I don't know how it is for everyone else.

Yours: Rapido

Options: ReplyQuote
Re: Zoom Buttons Help
Posted by: Rapido
Date: February 14, 2008 12:43PM

Now it works thanks everyone for all your help.

Yours: Rapido

Options: ReplyQuote


K-Meleon forum is powered by Phorum.