GetComponentIconSuite
Subject : GetComponentIconSuite
From: Gerry Beggs <email@hidden >
Date: Mon, 17 Oct 2005 19:33:35 -0500
Delivered-to: email@hidden
Delivered-to: email@hidden
Hi.
I'm creating a list of Video Output Components for the user to select.
I'm trying to display the icon associated with an output component.
I'm not receiving any errors, but the icon is not getting displayed.
I'm not sure what I'm missing. Here's what I've got:
Handle iconSuite;
ControlRef iconControl;
ControlButtonContentInfo contentInfo;
Component selectedComponent;
/*** selectedComponent and iconControl values assigned here ***/
if (noErr != GetComponentIconSuite(selectedComponent, &iconSuite))
{
contentInfo.contentType = kControlContentIconSuiteHandle;
contentInfo.u.iconSuite = iconSuite;
SetControlData(iconControl, kControlNoPart,
kControlIconContentTag, sizeof(contentInfo), &contentInfo);
}
The Handle returned by GetComponentIconSuite is only 76 bytes and is
mostly zeroes.
Any help would be appreciated. Thanks.
--
email@hidden http://www.mts.net/~gbeggs1/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.