AdvancedToolbarINIGuide for Opera 8.x/9.x

Original author: ToMu
See: ttt-buttons and skins







Here a try to unriddle the toolbar.ini a little bit, as an aid to `button creators`.

Note also similar docs for skin authors: AdvancedSkinGuide or SkinINIChanges and please note the CustomButtons page as well as the TTT-buttons page with more than 2000 Drag and drop buttons. Helpful also: AllActionsListPlus and AllActionsList (v9.x) as well as AllActionsList (v8.x)

Important addition:



About this guide:

The attention of this guide is turned to `how to create a button` and the syntax therefor. Take it as an aid to avoid most frequently failures.


Quick table of contents:

Detailed table of contents:

Sections in the toolbar.ini [⊗]

Each toolbar is represented with one or several sections in the toolbar.ini, example:

[Search Panel Toolbar.alignment]
...
[Search Panel Toolbar.style]
...
[Search Panel Toolbar.content]
...

But here another interesting section entry concerning the Panels selector width:

[Hotlist Panel Selector.style]
Maximum Button Width=50

(top)

General button syntax [⊗]

Please note first: on this button guide the four leading parameters in front of the `=`sign are hereinafter called: pA, pB, pC, pD as well as the other four parameters after the `=`sign are hereinafter called as: p1, p2, p3, p4

Button syntax:

Precondition,Buttontype,pA,pB,pC,pD=COMMAND,p1,p2,p3,p4

or detailed:

Precondition,Buttontype,General buttontitle-pA,Fontsize-pB,Skinsection-pC,Buttonstyle-pD=COMMAND,Depends-p1,Depends-p2,Command buttontitle-p3,Buttonimage-p4

Precondition,Buttontype,pA,pB,pC,pD="Command,p1,p2,p3,p4"

Buttontype,,,,pD=Command
Buttontype,pA=Command,,p2

There are more complex button structures if you are using the Operators mentioned later.

(top)

Precondition [⊗]

Optional. The Preconditions and combinations have to be in front of the buttontype! All the successional line content works only on that precondition.

Platform Unix,
Platform QNX,
Platform Mac,
Platform Windows,
Platform Win2000,

and combined platform preconditions found:

Platform Windows-Unix-QNX,
Platform Windows-Mac-QNX,
Platform Win2000-Unix-Mac,
Platform Windows-QNX,
Platform Unix-QNX,
Feature Voice,
Feature Feeds,
Feature Mail,
Feature Chat,
Feature MDI,

and combined feature preconditions found:

Feature Mail-Chat,
Platform Win2000-Unix-Mac, Feature Voice,

I think each combination is allowed, but not each may be useful.

(top)

Buttontype [⊗]

Sets the buttontype. The numbering of the buttons is recommended, please use always numbers which does not exists in the same section - in case of similar or equal buttons/commands it may be that a button not appears or not works as expected if Opera cannot differ via numeration (must not be consecutive but distinctive)!

Button12=
Quickbutton99=
Checkbox14=
Radiobutton15=
Dropdown16=
Multisearch177=
Quickfind18=
Edit19=
Account2=
Zoom23=
Address66=
Status24=
Identify25=

Buttontypes with a parameter:

For the following buttontypes, the next (and only) parameter defines the `sort`:

Search,x a searchfield, the next parameter says which searchfield you wish:

Search16,x

Searchbutton,x a searchbutton, the next parameter says which search you wish:

Searchbutton30,x

Spacer,x a spacer, the next parameter says which spacer you wish:

Spacer21,x

Status,x displays the corresponding status text defined with a number as parameter after the comma:

Status231,x

Progress,x displays the corresponding progressbar part defined through the parameter after the comma:

Progress22,x

(top)

Parameter pA, general button title [⊗]

Optional, sets the general button title you wish (between quotes; "WOW thats my button"), or sets the general button title taken from the language file (language file code without quotes!), examples:

Button28,"WOW thats my button"=
Button14,0123456789=

(top)

Parameter pB, font size [⊗]

Optional, sets the fontsize for the button title (default if not defined is: 100):

Button1050,pA,110=

(top)

Parameter pC, specific skin section [⊗]

Optional, since Opera 9 for test purposes, sets a specific skin.ini section you wish as button image:

Button122,pA,pB,3=

It seems the above skin.ini sections are in use with all the subsections if available, e.g. .hover, .selected, .pressed and so on.

The images are drawn around the button title if you are using: 1, 2, 5, 6, 7, 8, 9. The `Link button skin` (4) seems only to display the text.

(top)

Parameter pD, button style [⊗]

Optional, since Opera 9 for test purposes, sets the button style you wish for the buttons you set with pC:

Button87,pA,pB,pC,2=

(top)

Examples pA-pD

Correct examples for the things in front of the `=`sign:

Button100=
Button100,pA=
Button100,pA,pB=
Button100,pA,pB,pC=
Button100,pA,pB,pC,pD=
Platform Windows-Unix-QNX,Button100,pA,pB,pC,pD=
Feature voice,Button100,pA,pB,pC,pD=
Platform Unix-QNX,Feature Mail-Chat,Button100,pA,pB,pC,pD=

And some varieties:

Button100,,pB,,pD=
Button100,pA,,pC,pD=
Button100,pA,pB,,pD=
Button100,,pB,pC,pD=
Button100,,,,pD=
Button100,,pB=
Button100,,pB,pC=
Button100,pA,,pC=
and so on...

(top)

Command [⊗]

The command says what you wish to do with the button. Each button must have at least one valid command. You find such commands inside the mouse-, toolbar-, menu- and keyboard-ini, as well as in `Opera:config` and here in the Operawiki: AllActionsList.

Button13=Back
Button14=Forward
Button27=Rewind
Button10="Command,p1,p2,p3,p4"

The following examples are commands for multiple purposes; the first parameter p1 defines their sense (see the examples for p1 below):

Button14=Manage,...
Button19=Focus panel,...
Button56=Show popup menu,...
Button59=Show hidden popup menu,...
Button80=Show preferences,...
Button87=Set preference,...

(top)

Parameter p1, depends on the command/shortcut [⊗]

Optional, depends on the command, examples with commands for multiple purposes:

Button17=Manage,"Notes"
Button27=Focus panel,"Search"
Button37=Show popup menu,"Browser bookmarks menu"
Button37=Show hidden popup menu,"Browser bookmarks menu"
Button27=Show preferences,4
Button47=Set preference,"User prefs|Popup Button Help=1"

Parameter p1 for shortcuts in the title:

If a command includes a standard shortcut, you are able to display or hide the shortcut via p1. This concerns only the title appearing in the status bar/field and in the tooltips.

Button13,870715797=Go
or
Button13=Go,,,870715797
Button11,870715797=Go,1
or
Button11=Go,1,,870715797

If p1 is intended to be in use for other purposes, it can be that other values are recommended. For instance: the command `Show preferences` can have 0, 1, 2, 3, 4 as p1 for the `General, Wand, Search, Web pages or Advanced` tabs on top, so you must display/hide the shortcut in another way:

Button12,294279971=Show preferences
or
Button12=Show preferences,,,294279971
Button13,294279971=Show preferences,-1
or
Button13=Show preferences,-1,,294279971

(top)

Parameter p2, depends on the command [⊗]

Optional, depends on the command, specifies normally the first parameter p1, examples:

Button1010=Command,p1,p2
Button122=Execute program,"c:\programs\mozilla firefox\firefox.exe","%u"
Button750=Set alignment,"hotlist",6

(top)

Parameter p3, command button title [⊗]

Optional, sets the individual command button title you wish (between quotes; "WOW thats my button"), or sets the command button title taken from the language file (language file code without quotes!), examples:

Button28=Command,,,"WOW thats my button"
Button14=Command,,,0123456789

(top)

Parameter p4, button image name [⊗]

Optional, sets the buttons image you wish; the name here (between quotes) has to correspond with an image name in the skin.ini (normally an entry in the section [Images] there, the skin.ini associates the image name with the corresponding .png-file), examples:

Button103=Command,p1,p2,p3,"Button image name"
or
Button103=Command,,,,"Button image name"
Button123=Command,,,,"Back"
or
Button125=Command,,,,"Forward"

(top)

Examples p1-p4

Correct examples for the things behind the `=`sign:

Button100=command
Button100=Command,p1
Button100=Command,p1,p2
Button100=Command,p1,p2,p3
Button100=Command,p1,p2,p3,p4

And some varieties:

Button100=Command,,,,p4
Button100=Command,,,p3,p4
Button100=Command,,,p3
Button100=Command,,p2
Button100=Command,p1,,,p4
Button100=Command,,p2,,p4
and so on...

(top)

Operators [⊗]

There are four complemental operators which allows complex buttons:

(top)

The operator ` + `, arrow/hold [⊗]

Allows a second function like a menu with a dropdown arrow at the right, but allows also each other command as second function (then normally you have to hold the button for a while, but there are some tricks...).

Related also: Show popup menu as command displays the dropdown arrow, but Show hidden popup menu hides the arrow. You can call each section title from the menu.ini as popup menu.

Here some examples with dropdown arrow:

Button131=Show popup menu,"Style menu",,"Style","Back"
Button132=New page,,,67499,"Back" + Show popup menu,"Style menu"
Button133=Show popup menu,"Browser bookmarks menu",,"Bookms","Back" + Show popup menu,"Style menu"
Button134=Show hidden popup menu,"Browser bookmarks menu",,"Bookms","Back" + New page & Show popup menu,"-"
Button135=Reload,,,"Re-load","Back" + New page & Show popup menu,"-"

And here the examples but without dropdown arrow:

Button140=Show hidden popup menu,"Style menu",,"Style","Back"
Button141=New page,,,67499,"Back" + Show hidden popup menu,"Style menu"
Button142=Show hidden popup menu,"Browser bookmarks menu",,"Bookms","Back" + Show hidden popup menu,"Style menu"
Button143=Show hidden popup menu,"Browser bookmarks menu",,"Bookms","Back" + New page
Button144=Reload,,,"Re-load","Back" + New page

Something special:
The above button `Only Menu` without dropdown, works correct, but if you accidentally hold the button a while - nothing happens. To avoid that you can set the command twice:

Button145=Show hidden popup menu,"Style menu",,"Style","Back" + Show hidden popup menu,"Style menu"

Another special:
In the Panel header toolbar you find a text-button which displays the current panels title and shows the `panel menu`. This button you can have also for any other toolbar:

Button200,69682=Show popup menu,"Internal panels" + Show hidden popup menu,"Internal panels"

And...:

I think all the things are to complicated to explain, but with the above examples you are able to create each imaginable button with this operator.

(top)

The operator `&` [⊗]

Allows to include more commands which are recognized together with the main command:

Button200=Command1,p1,p2,p3,p4 & Command2,p1,p2
or
Button200=Command1,p1,p2,p3,p4 & Command2,p1,p2 & Command3,p1,p2 (and so on)

(top)

The operator ` | ` [⊗]

Allows two commands, e.g. On/Off buttons with two commands. Recognized by Opera is always the command which is `not true`.

Button140, 21235=Stop | Reload,,,21210
or
Button140=Stop,,,21235 | Reload,,,21210
or
Button140="Stop,,,21235,"Stop" | Reload,,,21210,"Reload""
Button120,"Enable Gif"="Enable GIF animation | Disable GIF animation"
or
Button120="Enable GIF animation,,,"Enable Gif" | Disable GIF animation"

There is no list which commands are provided or not; you have it to try out.

(top)

The operator ` > ` [⊗]

Allows multiple commands, with different titles and images. Recognized by Opera is always the next command after the command which is currently `true` - after the last command follows the first. The first command is recognized too in case of no command is currently `true` or if several commands are currently `true`.

Button480="Disable popup windows,,,52201 > Enable popup windows,,,52200 > Enable popup windows in background,,,52202 > Enable requested popup windows,,,67424"

(top)

More [⊗]

Table of contents:

(top)

Button type, Checkbox and Radiobutton [⊗]

The button type Checkbox= you can use for On/Off `buttons`.

Checkbox333=Enable gif animation,,,"Gif" | disable gif animation

Also a Radiobutton= as button type you can use for On/Off `buttons`, with the same effect as the checkbox above.

Radiobutton334=Enable gif animation,,,"Gif" | disable gif animation

(more)
(top)

Button type, Dropdown [⊗]

A Dropdown= as button type displays a dropdownbox in order to choose between several commands.

Dropdown650=Identify as,0,,52210 | Identify as,1,,52211 | Identify as,2,,52212 | Identify as,3,,52213 | Identify as,4,,52214

(more)
(top)

Button type, Quickbutton [⊗]

The button type Quickbutton= executes the command as long as the button is pushed. In Opera only used for a voice button. But there are also other imaginable purposes.

QuickButton602=Enable handheld mode,,,67406,"Back" | Disable handheld mode

(more)
(top)

Command, Manage [⊗]

Syntax:

Button632=Manage,"..."

Manage, "panel tabs":

Valid as p1 after `Manage,` are: Search, Bookmarks, Mail, Contacts, Chat, Notes, Transfers, History, Links, Windows, Info, Music (and Widgets since Opera 9),

Manage, "nothing":

Because each button needs a valid command, it is sometimes necessary to have a valid Command without effect.

Button995,=Manage,"-",,,"Spacer image"
Button996,"COMMENT-TEXT"=Manage,"-"

Manage other things:

There are a lot of commands with `Manage` but without comma, e.g. `Manage wand` or `Manage contacts`. See the AllActionsList.

(more)
(top)

Command, Save with images [⊗]

In Opera 8.x we had the commands `Save document` or `Save document as` in order to save without images and `Save document with images as` in order to save with images (stored in the same folder). New in Opera 9: `Save document with images as` is no longer valid, but `Save document as,1` saves with images (the images stored in a separate folder!). I tried to combine the commands for the use in Opera 8.x AND 9.x, but because 8.x knows both (`Save document as` and `Save document with images as`) such a button works not properly; displays the dialog twice (8.x) or hides the button image due to unknown command (9.x). But here a tricky solution:

Button280="Save document,1,,21205 + Save document with images as | Save document as,1 + Show popup menu,"-""

Button290="Save document,1,,21205 + Save document with images as | Save document as,1"

(more)
(top)

Parameter, Variables [⊗]

In some cases you need one of the variables below as parameter (normally for p2 or p3):

(more)
(top)

Parameter, Preferences list [⊗]

Only for Opera 9; with the command and the next parameter Show preferences,x it is possible to open the `Preferences dialog` with the desired tab and category on top (see also: Parameter p1)

Here the complete tabs list:

And here the complete Advanced tabs categories list:

(more)
(top)

Special effects must be activated for second function [⊗]

(more)
(top)

Here you find a lot of Drag and drop buttons: CustomButtons and TTT-buttons

there is a way, workaround, how to use commands which are not supporting toolbar natively in a OR statement

and another tip how to have multiple commands in OR statement working.

just few other ideas..
didn't see nothing like that on this web.
I can't edit this page, nor can I create a new page here.
pitty. this web needs desperately some huge updates :(

PaPo (2011-09-04 09:09:42)

wow. sorry, I havent done that on purpose. didn't use html or nothing. it's falling apart little bit..mmm

PaPo (2011-09-04 09:12:44)

k52S7k Yeah, it is clear now !... Just can not figure out how often do you update your blog?!....

193.105.210.170 (2012-02-10 23:17:43)

Every time I come back here again and don`t get disappointed..!!

193.105.210.170 (2012-02-13 08:03:13)

The text is promising, will place the site to my favorites..!!

193.105.210.170 (2012-02-13 08:25:52)

I am glad that your blog is constantly evolving. Such posts only gain in popularity!....

193.105.210.170 (2012-02-13 08:48:31)

However, the author created a cool thing..!!

193.105.210.170 (2012-02-13 09:11:07)

Author, Shoot yourself a knee..!!

193.105.210.170 (2012-02-13 09:33:51)

Rob, you have to log into the website. Run the CR sowrtafe and click on the Play' button. The screen will refresh you will see Log in to the Renegade system' on your screen.Then, enter your username and password and click on Login'Once you've logged-in, scroll down and you'll see th emenu items, the dropdowns are enabled once you're logged in.Hope this helps,Russ

177.38.163.7 (2012-12-09 14:10:49)

Add a comment to this page (use wiki formatting if needed, no HTML/BBCode please). Only registered users can submit links, your comment will be deleted otherwise: