[futurebasic] Re: Another Color Icon Question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 1998 : Group Archive : Group : All Groups

From: Chris.Young@...
Date: Fri, 24 Apr 1998 14:14:35 -0500
Interesting--just poked around modifying a demo program I had, and sure enough, 
Derek is correct that theCicn&..IconPMap.BaseAddr& is 0. Then I tried something:
I plotted the icon, then rechecked theCicn&..IconPMap.BaseAddr&--it was now a 
valid pointer!

I just did something like:
theCicn& = FN GetCIcon(128) ' valid CIcon in .rsrc file
PRINT theCicn&..IconPMap.BaseAddr&  ' prints 0 here
err = FN PlotCIconHandle(@t, _atNone, _ttNone, theCicn&)
PRINT theCicn&..IconPMap.BaseAddr&  ' prints 57286800 here

hmmmm...

Chris Young

______________________________ Reply Separator _________________________________
Subject: Re: [FB] Another Color Icon Question
Author:  dereksmi@...
Date:    4/24/98 1:21 PM



> >So, If the pixmap is inline, is there a way to get copyBits to 'just start 
> >copying from the address in SrcBits instead of it thinking that it's a
> >handle?  Well maybe that didn't make sense but I think you know what I 
> >mean right?
> 
> A pixmap handle is: a pointer to a pointer to a pixmap record.
> A cicon handle is:  a pointer to a pointer to a pixmap record and other 
> stuff.
> 
> I'd try just feeding CopyBits the (locked) cicon handle. It sounds 
> sneaky, but I can't think of a good reason why it wouldn't work.

Sorry to drive everyone nuts with this one, but I had a chance to try this 
for a few hours and no dice.  No form of cicn handle in any way shape or 
form will copy the right area.

The only help I can offer is that the BaseAddr field always comes out as 
zero when I check it.

[[theCicn&]+_IconPMap+_BasAddr] = 0  everytime.

I think I will admit defeat and tackle this one some other time.  Thanks 
for helping Mars!

-Derek
----------------
www2.hawaii.edu/~dereksmi
----------------

--
To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>