Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.
Current information on this Reference Library topic can be found here:
Version 1.0, 2003-01-14
Displays a pop-up menu when the user clicks on the custom button in the movie controller bar.
This code snippet shows one way to display a pop-up menu when the user clicks on the custom button in the movie controller bar (just like the QuickTime web browser plug-in does for its custom button). The basic idea is very simple: just call PopUpMenuSelect when the user clicks the custom button. Before we do that, however, we need to obtain a MenuHandle to the desired pop-up menu. Here we use NewMenu and MacAppendMenu to create the menu on the fly; we do this mainly so that we don't need to drag a resource file around. A real application would just call MacGetMenu to read the menu from its resource file. Requires: QuickTime Keywords: QuickTime, movie controller, custom button, pop-up
© 2003 Apple Computer, Inc. All Rights Reserved. (Last updated: 2003-01-14)