[futurebasic] Re: [FB] Displaying a bitmap

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 1999 : Group Archive : Group : All Groups

From: Joe Lewis Wilkins <PepeToo@...>
Date: Fri, 26 Nov 1999 19:15:42 -0800
Hi Charlie,

I should think your icon probably starts off as a Resource? If so, then this:

DIM iconRect.8
DIM icnHdl&
DIM iconID%, x%, y%
'
x% = ?
y% = ??
iconID% = ???
'
SETRECT(iconRect,x%,y%,x%+32,y%+32)
icnHdl& = FN GETCICON(iconID%)
FN PLOTCICON(iconRect,icnHdl&)

should work; otherwise do the same thing, but provide icnHdl& directly as a
handle to your bitmap in memory. Of course you could also place the bitmap
into a resource before you used it too.

Hope this works for you.

Joe Wilkins

Charlie Dickman wrote:

> Fellow FBers,
>
> If I have an icon bitmap in memory how do I display it in a rect on
> the screen? Is it a copybits call? If so, what are the bitmap
> parameters? Do I have to (somehow) put it into a GWorld first? If so,
> how? Does it go nicely into an edit field? How?
>
> Any info will be greatly appreciated.
>
> Charlie Dickman
> charlied@...
>
> --
> To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>