[futurebasic] Re: [FB] Displaying a picture (how do I?)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2008 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Fri, 5 Sep 2008 13:21:12 -0700
On Sep 5, 2008, at 12:25 PM, <bheibert@...> <bheibert@... 
 > wrote:
> What kind of control do I need to use to display a picture in a  
> window?
Maybe try the image well in TWM. Then specify it as holding a PICT  
( assume by picture you mean PICT )
There are lots of options depending on exactly what is required.

>
> Picture field?
That is possible but doesn't specifically involve TWM or a nib. The  
image well doesn't generate a picture field.

>
> Would I be better off using NIB?
Too little information to give you any significant feedback.  
Generally, the answer is no.

>
> If so how would I display a picture in a nib window?

Use the PICT control ( shows as a blue rectangle with the word PICT  
inside it in Interface Builder ). In IB provide the resource ID of  
your PICT. Load the nib in your program and voila! There are other  
methods and other file formats ( like JPEGs, PNGs ).


Brian