problem to pop up a window in firefox plugin - firefox

hi
I am creating firefox plugin.I have one button-1.png image and I have added it to customize toolbar.I have used one button.xul file to add button in toolbar.I have also used chrome.manifest, install.rdf,button.css,button.js.
It is showing button in toolbar,I dragged that button and dropped on toolbar.
Now my question is, when I click on that button, I want to pop up a small window.
so please tell me,what should I write in button.xul & button.js to pop up a small window.
How will I get a pop up window,when I click on a button?
What changes I need to do in button.xul & button.js?

You can use the window.open method to open a popup window. Take a look at this link. If you want to open a popup(and not a window) then you can use a panel. You can anchor a panel to an element (say button) when opening it using the openpopup method. Some examples are available here as well.

Related

VB.NET Disallowing user to leave form until closed

I'm trying to imitate a feature of Windows. For example, when you're in a folder's properties, and then open the 'Advanced' popup from the properties page; if you try to click out of it the menubar flashes and a windows error sound is made. It is not until you close the popup by pressing okay or cancel or X that you can continue.
I would like to imitate this feature in my VB.NET project, thinking there would be an easy enough way to do this, but I cannot find one.
Show the second form as Dialog from the first form. While the second form is still open, user can't interact with the first form.

File chooser in a default Cocoa application

I have created a default [Swift] Cocoa application. I attempted to Ctrl drag from the default Open button in the menu to my View Controller in the assistant editor, but nothing happens.
Is my approach wrong? I assume there is some kind of default file chooser dialog, but I do not know how to make it appear or enable the Open menu item. From the documentation I feel I could make one appear programmatically, but I want to enable the menu button.
My first attempt at an OS X program hit a wall very fast :-/
First, control-Click on Open, and see if it is already attached to a function. If so, click the x to detach it, then try again.
Second, be very sure that the Assistant Editor is presenting the correct file to do the control-Drag. I have found that I need to manually choose the correct file much of the time.

What's the class/id of the Firefox right-click menu?

I'd like to write a userstyle to modify the right-click menu in Firefox, but need its XUL class and ID. What is it?
(I'd usually use DOM Inspector to find it out, but one can't inspect a right-click menu because focus is lost when switching to the DOM Inspector window.)
The right click context menu that appears when you right click on a webpage has the id = contentAreaContextMenu. You can see here some information on modifying it.

VBScript to click buttons

I am trying to write a program in VBScript to automate tasks that I do in Internet Explorer. I need to click a series of buttons and textboxes and I was wondering if someone could give me a hint on how to get VBScript to click them for me?
At the moment I am just telling my program to click "tab" to get to the button I want and click "enter" - which makes the program really slow. I also need to enter data into a series of textboxes and click a button that will add another textbox for me to enter information in.
Any guidance would be greatly appreciated.
Thanks!
Right click the button you want in VBscript to click.
Click Inspect Element.
Find the Element ID of the button.
Make VBscript click the button like the example below:
Document.getElementById("IDGOESHERE").Click

tab order in dialog box

I'm using an old version of Visual Studio that provides only the 'interactive' method for setting tab stops. Is there anyway to clear all the tab stops before setting them? Or anyway to exclude a given control from having a tab stop?
Added 10-sept-2009
Part of my problem was confusing tab stop order and tab stops. I naively assumed setting tab stop order, set a tab stop hence much confusion. Thanks for pointing out that tab stops are set in the property box.
You are not clear about your specific VS version, but as far as I remember (back to VC6) you automatically assign the tab order if you simply click once on each control in your desired order. There is usually no need to reset them beforehand.
This hint from a VC6 tutorial might be helpful:
To adjust the tab order of your
controls, you can choose the Tab Order
command from the Layout menu and click
the controls in the order that you
want them to be tabbed. If you have a
complicated dialog box and only want
to change the tab order of a few
controls, you can take a little
shortcut by holding the Ctrl key down
and selecting the last control that
tabs properly before selecting the
controls that tab incorrectly.
Clicking an empty spot in the dialog
box, or pressing Enter, will exit the
tab order mode.
To prevent a control from being
reached using the Tab key, clear the
Tab stop checkbox on the control's
property page.
If you want to change the tab behaviour programmatically, look for the WS_TABSTOP windows style.
Open the dialog whose tab order you want to change. Press Ctrl + D. On the dialog you will see numbers next to each control which indicate the tab order for that control. Click the controls in the order you want the tab order to go.

Resources