The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

toggle tooltips dislpay On-Off?

Forums » General Opera topics » Customizing Opera

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

7. November 2011, 00:46:49

soilman

Posts: 237

toggle tooltips dislpay On-Off?

I'd like to be able to avoid having to go all the way deep to Tools > Preferences > browsing to find the checkbox. Say put a checkbox on the main toolbar (or the document view bar) or be able to toggle tooltips on-off with a keypress. Any suggestions. I had the toolbar checkbox method working in Opera 9, but tranferring it to Opera 11 hasn't worked. Had this line [browser toolbar.contet] in the opera 9 toolbar.ini file:

Button20="Set preference, "User prefs|Popup Button Help=1", , -453803737, "Checkbox skin" | Set preference, "User prefs|Popup Button Help=0", , , "Checkbox skin.selected""

Also, I don't remember how exactly this accomplished the task.

Got it from an Opera customizing site somewhere but I can't find it anymore.

I suspect that "checkbox skin" may refer to an image.png file that I don't have in the skin i'm using with opera 11.
May I help you?

7. November 2011, 00:51:26

soilman

Posts: 237

Hmm. I tried it again, and now its working. Weird.
May I help you?

7. November 2011, 03:18:40

Moderator

sgunhouse

Volunteer

Posts: 66788

Except if you're using some "native" skin, there will be a checkbox skin. And in a native skin, Opera should get it from your environment (as in, Windows or OSX or whatever).

7. November 2011, 10:44:53 (edited)

soilman

Posts: 237

Not sure what you mean sgunhouse. Not quite sure what a native skin is. Or a checkbox skin.

Actually, I'm totally confused as to how the code causes a working checkbox to appear on the toolbar. What does -453803737 mean? I can't find a reference to a section in skin.ini that refers to an image file in the unzipped skin file set. I can't figure out what "user prefs" does, or why it is separated by an "OR" symbol "|" from popup button help=1. Or why there are three "|" symbols and clicking on the checkbox only toggles between 2 choices. "Set preference" is listed at http://operawiki.info/AllActions, but it is only listed as a possible action, none of the actions listed have an explanation of what they do, only their name. Also, in the skin.ini file I don't see either checkbox skin or checkbox skin.selected with and equal sign after it and then an image file. So where is the image of the checkbox coming from?




May I help you?

7. November 2011, 11:34:46 (edited)

soilman

Posts: 237

OK, -453803737, referred to in the en.lng file, means "show tooltip." Which I'm not sure if it is an action where it is, or a parameter. I guess it must be a parameter indicating the text that is next to the button graphic, and the text that show in a tooltip when you hover over the graphic. But I still can't figure out where the checkbox graphic is coming from, and how the code refers to it. I've found 2 checkbox graphic in the skin, in the "checkbox" folder, one called selected.png, and the other unselected.png, but I can't figure out how the button code calls up those graphics.
May I help you?

8. November 2011, 16:13:18

Moderator

sgunhouse

Volunteer

Posts: 66788

It is a label where it is.

Set preference is an action that edits opera:config for you. The quoted text "User prefs|Popup Button Help=1" tells Opera which preference to change (section User Prefs, item Popup Button Help) and the new value (1, which is equivalent to checking a checkbox).

In the file skin.ini inside your skin, there is a line which will say "Checkbox skin.selected" and tell Opera which file to use for that image.

Since two of the "|" symbols are in quotes, only one of the "|" symbols is an "or".

9. November 2011, 01:19:00

soilman

Posts: 237

Thanks sgunhouse. 2 problems though. What does the | symbol do, if it is in quotes? Also, I searched my skin.ini file, and I can not find a line in it saying "checkbox skin.selected" I can find a line saying [checkbox skin], and under that is written native = 1, but I don't know what that means, or how that causes a checkbox image to appear on the toolbar, or a checkbox image with a check in it. The checkbox images that are included in the skin, that I've found, don't look like the checkbox that appears on the toolbar. Instead, these images I've found look more like the checkbox that appears in the menu, in several places.
May I help you?

9. November 2011, 06:23:05

Moderator

sgunhouse

Volunteer

Posts: 66788

It is using the checkbox as defined by your environment, as mentioned earlier regarding "native" skins.

Have you ever seen any of the links for preferences settings? There is no general meaning to the "or" symbol when in quotes; rather, it is a specific meaning in this context. If you check the Opera's Settings File Explained page, you will see they have links on the item titles, clicking the title will actually take you to that setting in opera:prefs. If you click on "Popup Button Help", the address is actually:

opera:config#UserPrefs|PopupButtonHelp

Spaces aren't allowed in links, so they left them out ... but otherwise the part after the fragment separator "#" is the same as in your button - without the actual value of course. So ... in the context of Opera's preferences file, the "|" symbol is used to separate the section name (User Prefs) from the item name (Popup Button Help).

9. November 2011, 15:13:06 (edited)

soilman

Posts: 237

Alright thanks. I understand now about the vertical line character just being a character in the link to a placemark on the opera:config page. But I don't understand about what is a "native skin." I'm using a modified version of the standard skin. I made a copy of the original skin, by copy-pasting the zip file for the original skin, from the folder program files/Opera11/skin, into the skin folder where opera was placing all the new skins I had downloaded . I unzipped the newly copied skin, and made a few changes to skin.ini file, including the line "name=[new skin name]", and added some new images to the collection of button images, put pointers to them in the skin.ini file, and altered some existing images with photoshop, zipped everything up again, then used the appearance screen to switch to the newly zipped up file, via the new name I had given it in the skin.ini file. Is this a native skin or is it not a native skin or what? I thought it was an Opera skin. I have not selected the skin called "Windows Native Skin." When you say that Opera is getting the 2 checkbox images from my "environment" do you mean the windows operating system that I am using? It can't be getting the images from the skin I'm using, because neither of the images exist there.
May I help you?

10. November 2011, 09:14:21

Moderator

sgunhouse

Volunteer

Posts: 66788

Windows, or OSX on a Mac, etc.

Forums » General Opera topics » Customizing Opera