SGAppendDeviceListToMenu
TheSGAppendDeviceListToMenufunction allows you to place a list of device names into a specified menu.
pascal ComponentResult SGAppendDeviceListToMenu (SeqGrabComponent s, SGDeviceList list, MenuHandle mh);
s- Specifies the component instance that identifies your connection to the sequence grabber component. You obtain this value from the Component Manager's
OpenDefaultComponentorOpenComponentfunction.list- Defines a pointer to a device list structure pointer. The sequence grabber appends the name of each device in the list to the menu specified by the
mhparameter. If thesgDeviceNameFlagDeviceUnavailableflag is set to 1 for a device in the list, the sequence grabber disables the menu item corresponding to that device.mh- Specifies the menu to which the device names are to be appended.
DESCRIPTION
You may use theSGAppendDeviceListToMenufunction to present a list of valid devices to the user. The user may then select a device from the list. You can assign
that device to a channel by calling theSGSetChannelDevicefunction. Note that, if you choose to have the sequence grabber check the availability of each device (by setting thesgDeviceListDontCheckAvailabilityflag to 0 with theSGGetChannelDeviceListfunction), the sequence grabber will disable menu
items that correspond to unavailable devices. This prevents the user from selecting a device that cannot be used.RESULT CODE
paramErr -50 Invalid parameter value SEE ALSO
You obtain the device list by calling theSGGetChannelDeviceListfunction, which is discussed on page 5-70.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help