Google Answers Logo
View Question
 
Q: Mac OS X Picture Control problem. ( No Answer,   0 Comments )
Question  
Subject: Mac OS X Picture Control problem.
Category: Computers > Programming
Asked by: stevex-ga
List Price: $15.00
Posted: 24 Jul 2002 15:16 PDT
Expires: 26 Jul 2002 05:05 PDT
Question ID: 44758
I'm working on a Macintosh program in C and having a problem with a
Picture control.  I've added the control in Interface Builder, and I
have a PicHandle that I've created that I want to display in the
control.

I've tried:

void SetControl(PicHandle picHandle)
{
  ControlRef control;
  GetDialogItemAsControl(GetDialogFromWindow(gScanWindow), 200,
&control);
  SetControlData(control, kControlPicturePart,
kControlPictureHandleTag, sizeof(picHandle), &picHandle);
}

But this doesn't seem to work - even though control looks valid and
picHandle seems valid, I don't see the Picture control.  It's as if
the picture control isn't there at all - I can see the dialog
backround where the control should be.

I have another picture control on the same dialog that's supposed to
be showing a static bitmap from the resource; the bitmap shows up fine
in Interface Builder, but when I tell it to Test Interface, the
interface appears with blank space where the bitmap should be - so
maybe there's something I haven't initialized or something that's
required for using the picture control?  I don't really know.

This is on Mac OS X, using Interface Builder 2.2.1, and the current
version of Project Builder (I can't remember what it is).
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy