Announce and Discuss the Latest Theme and Extension Releases.
i want to create a checkbox so that when i check the checkbox a prefstring with a string value be changed to zero .and when i uncheck that checkbox prefstring gets back to its default value . can you tell me what should i write in topref and frompref section ? i know how to do this for boolean and integer values but it is not working for string values .
A possibility is to use an Extcheck button.
Such a button allows to have more control over set and get functions.
I have a button like this:
ok there are 3 sections in a Extcheck. set-function get-function and init-function . im not expert about these codes how can i use your code here ?
You didn't give much details to work with.
With zero, do you mean the number zero as a String (or Integer) value ("0") or is this an empty String value ("")?
You can use this function call to reset a pref or possibly use SetPref() to set the pref to a specific String value and use GetPref() to get the current value.
The Init-function is not needed.
thank you . it is working .
I am new to FireFox and just installed PrefBar. It seems very versatile, and just what I need, but I have been unable to set up a button that launches a local executable file (.exe).
Any help would be greatly appreciated. (FireFox 30.0, Windows XP)
Thanks for your feedback and sorry for the late answer. Now, I subscribed to this topic so I hope in future I'll be able to answer in time.
Creating a small example for "execute some software via button" is on my todo-list. There were some example buttons, in the past, directly built into PrefBar, but they were not really useful. A small tutorial would be much better to explain how to use the required backend function.
I have PREFBAR 6.5.0 installed under FF 36.0.4 and can no longer IMPORT buttons directly from the PREFBAR “More Buttons” list. If I choose "import", I get a message saying that the "import" process has started but it just hangs at that point and never completes. The problem still exists even with all other extensions disabled so the problem is not an extension conflict. I can download the particular button first and import it that way but I prefer being able to import the button directly from the "more buttons" list. Can anyone tell me why direct "Import" no longer works and is there a way to get it working properly again? Thanks.
I have been using a checkbox in Prefbar I had made to toggle between webpage and system colors. Its elements were the following:
value = goPrefBar.GetPref("browser.display.use_document_colors");
Unfortunately now it does not work. Now it seems that in the Options > Content > Colors... to have the same effect as before I have to toggle between
Checked Use system colors
Override the colors specified by the page with my selections above: Always
Unchecked Use system colors
Override the colors specified by the page with my selections above: Never
(The reason I need to have system colors unchecked when viewing document colors, is that some webpages specify background (white) but not color, and my system color is white; for example, turn your system colors to white on black and try to see a blank tab page, that is supposed to show sites you visit: it will appear totally white. So I have specified FF colors black on white, to be able to see it as intended.)
*Some additional information:*
When I have about:config open to follow what is going on with the browser.display.use... keys, when I check the PrefBar checkbox, the values change accordingly in about:config (with no effect on the webpage display). When, however, I change Never and Always from the Options, these values do *not* change (though the display does). Obviously there is some other key involved. Which one?
It's very important for me. Please help!
Natal Transits Calculator
https://files.nyu.edu/emf202/public/nt/ ... nsits.html
The new key to change document colors is browser.display.document_color_use and it takes 3 values: 0, 1, and 2. the old checkbox to change document colors does not work any more.
Now I need to make a checkbox for Prefbar to toggles between
browser.display.use_system_colors = true;
browser.display.document_color_use = 2;
browser.display.use_system_colors = false;
browser.display.document_color_use = 1;
How do I do this?
Thanks dickvl. I created a checkbox using the lower part of the code above (prefstring, topref, frompref), and another one for the system colors. They work, though I cannot understand the prefbar:info and the prefbar:menu:enabled part. and have no idea how I can make use of them.
Now I have a sysclr checkbox checked and a docclr checkbox that I check to see the document colors and uncheck to use my colors.
So far so good. But as I said I'd prefer to have a single checkbox so I won't have to check the and uncheck the other alternatively (though it is true that this is not often necessary). How can I make one?
Who is online
Users browsing this forum: Bing [Bot] and 1 guest