Just edit a toolbar section or create your own (in this example I'll create my own) and just call the macro from a button inside that toolbar:
My Buttons bar{
Button name{
macros(BugMeNot)
button mouseover description
buttonimagebmp.bmp[0]
buttonimagebmp.bmp[0]
buttonimagebmp.bmp[0]
}
}
Enable the toolbar "My Buttons bar" through the View menu.
The number between brackets is the index of the first 16px of the bmp you have. If you have a bmp of 16x16 (and therefore only one icon) you can just leave it as [0]. If you have a bmp of 32x16 and you want to use the image between the first 16px and the 32 px, you should use [1] to select it.
The three bmp definitions are for onmouseover, active and so on options with the button appearance.
Note that I'm using a 16px icon size, but can be defined other types.
But you have already a reference in the toolbars.cfg file:
#
# Toolbar Definition File for K-Meleon
#
# Jeff Doozan <jeff@tcbnetworks.com>
#
#
# ToolBar Name(16,16) { # (width, height) is optional, defaults to 16, 16
# Button Name(16, 16) { # (width, height) is optional, defaults to toolbar dimensions
# ID_NAV_STOP # command id (required)
# Stop Page Loading # Tooltip text
# c:\toolhot.bmp[2] # hot image (optional)
# # [2] (optional) is the zero based index of the
# # image within the file, defaults to 0
# c:\toolcold.bmp[2] # cold image (optional)
# c:\tooldead.bmp[2] # disabled image (optional)
# }
# }
#
# Notes:
# - If don't specify any images in the toolbar, it will become a "text" based
# toolbar, and use the button names in place of images
#
Edited 2 time(s). Last edit at 03/15/2012 04:01PM by JohnHell.