I've just joined the list, and apologize if this has been discussed
before, but I searched the archives and couldn't find anything
relevant.
I've noticed that some of the Apple widgets (specifically, the
Weather, Phone Book, and Stock widgets) create a pop-up menu using
calls like:
var menu = widget.createMenu();
menu.addMenuItem(string);
var selectedItem = menu.popup( 32, 80);
My question is - what API is being used here? Is it documented
somewhere? (I looked, but couldn't find any documentation.) Can I,
or should I, use this method of creating pop-up menus in my widget?
My goal is to have a button on the backside of my widget that behaves
like a standard Mac OS X bevel button or icon button with a pop-up
menu, that is, you press the button, and a menu appears *below* the
button.
I couldn't figure out how to accomplish this with a standard <select>
element pop-up menu; I can easily use one to create the effect where
the pop-up menu is hidden and appears on top of the button when the
button is clicked, but not how to make a menu appear below the button
when the button was clicked. I could accomplish this, sort of, using
a <select> element with a scrollbar, but that's not the look I was
hoping to have.
The widget menu object seems like it would do what I want, but I
wanted more information about it before attempting to use it, and to
make sure it wasn't some unsupported thing I wasn't supposed to
touch. (I also had questions like "does the widget menu object have
a method that I can use to put a checkmark next to an menu item?")
Thanks for any advice,
--Scott McGuire / email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden