[futurebasic] Re: [Q] drawing in colour...

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1997 : Group Archive : Group : All Groups

From: Mel Patrick <mel@...>
Date: Fri, 12 Dec 1997 10:07:54 -0800
>>Okay I have to be doing something wrong. According to Inside Mac when I set
>>the ForeColor and draw it should show up in that colour. It don't. Least
>>not on my window. Change the color using any of the colour commands and it
>>will be displayed in B&W. But if you use the OLD colour command and print
>>something, it shows up in colour. Weird.
>>Someone want to point out why this is so? Seems illogical to me.
>The problem seems to be somewhere in your code _other_ than in the
>color-setting stuff. I put in the following, cut down drastically from
>the code you posted, and it worked fine;

Duh...you know its one of those days when you spend 4 hours debugging code
only to find out that the values you send for a colour change were all the
same value. Duh...sheesh..

Once I traced the routine that sends the colour change information out, I
found I was sending it all the same value. Grabbed the wrong two bytes from
memory. I spent 5 minutes fixing it. and 30 more minutes making the
"stupid" sticker for my forehead...

And thanks to all those who suggested the "make an invisible window", open
picture, record the quickdraw, close the window, draw the picture. It works

I haven't gone the extra step to see if its worth building a Gworld. So I
don't know if the pict will scroll smoothly or not (its going to be
displayed inside a rect in a window with a couple of scrollbars). So whats
better, scrolling the pict, or copybitsing a gworld?

And if anyone owns a Pfaff 7570 sewing machine, you can have a copy of the
program when its done (the 7570 is a computerized embriodiery machine)...

Mel Patrick - theWabbitGuy - mel@...