How to show a menu after clicking on the widget icon? - firefox

I am using firefox addon builder (Addon kit 1.7) and I wonder to know if it's possible to show a simple menu like the context menu of firefox just after clicking on the widget icon. I need few hints. Thanks in advance.

I managed to make it work using the MenuPopup package by Yaelle Borghini and uploaded a simple example on the Addon Builder site.
You will have to expand on Yaelle's code to support dynamic modifications of the menu items because it's not fully built in at the moment (though it shouldn't be too hard to add it).
Here's the discussion on the Mozilla forums about how to show menus with the Addon SDK that got me started.

Right now the only option is to hook a panel to a widget and add a menuitem to the panel with html.

Related

Firefox add-on builder: is it possible to add a .Panel on navigation toolbar

I'm a newbie in Firefox add-ons development. I'm developing an add-on and able add a button on navigation toolbar. But I need to add a panel (size of 125x30) instead of a button. Is it possible? If possible please help me. Thanks.
It is not possible that I know of, though I am also relatively new. You can create a 125x30 button - thanks ken snyder - or you can create a widget in the Add-On bar. Either of these could open a separate panel, but I don't think you can directly insert a panel into a toolbar with the new SDK.

Firefox extension icon on the navigation bar using the Add-on builder

How do I add an icon to Firefox that opens up a panel on click on the navigation bar. An example is the Firebug extension. The only thing that will be different, is that I want a panel to appear.
Thanks!
You might want to use or take a look at this toolbarbutton library:
https://builder.addons.mozilla.org/library/1006210/latest/

mac toolbar style

Does anybody know how to make a toolbar which style is like top bar of "Xcode Organizer"?
Press different item ,different view will show down below.
It has toolbar style but tab bar function,Many mac apps' preference pane use it,I'm confused.
Can anybody help me please.
Thank you very much.
Plus this is a Mac Application
Start with the documentation for NSToolbar. There are even some sample applications to get started with.
Good overview for making a better preferences window - see the link to a demo project on the second page of this article.

Add FF App Menu Item (Restartless)

I am trying to create a Firefox add-on that is restartless and has a menu entry in the Firefox App Menu (preferably in the Options sub-menu). I cannot find anything anywhere on how to add an entry to the app menu while being restartless! I am building it with the Mozilla Addon Builder. Any and all help would be appreciated!
In fact, there isn't really a way to do this. A "normal" restartless add-on has to enumerate all open browser windows and add a menu entry "manually" to the element with id="appmenu-popup". It will also have to watch for new windows being opened to make the same change there as well. While this is already complicated enough (bug 675387 is about making this simpler by allowing using overlays like in non-restartless add-ons) I strongly suspect that the Add-on SDK (that the Add-on Builder is based on) doesn't provide any way to do this at all. After all, it is only meant for add-ons that can live with a limited set of features.

Drop down menu like the default iPad application menus

I'm currently working on my first iOS application to run on the iPad, and I've come across a problem. I have been asked to implement menu's similar to the ones in the default applications such as when you click on the "Calendars" button in the top left of the calendars app.
Only issue is, I cant seem to find a standard UI object that looks like these, with the arrow connecting the menu to the button etc. Is this a standard UI component that I should be able to use, or will I have to imitate them by creating a custom object?
Thanks for any help.
That is a UIPopoverController. There isn't an Interface Builder control for this. You need to create one programmatically:
UIPopoverController *popover = [[UIPopoverController alloc]initWithContentViewController:someTableViewController];
See the documentation for more information and sample projects, specifically ToolbarSearch:

Resources