C (85/257)

From:
Date:08 Feb 2001 at 14:38:41
Subject:Re: ObtainBestPen Again

Hello Sensei

On 07-Feb-01, Sensei wrote:

> Do you have tag SA_SharePens, TRUE in taglist passed to
> OpenScreenTagList()? I attached source of working example of using
> ObtainBestPenA() which renders red gradient LR... I send executable to
> your private e-mail.

I appeciate that. :) I replaced the code I was using in my example code
with yours ( http://my.voyager.net/~jyork ). I forgot to change the
comment so don't pay attention to it. If I use it as you provided, it
works, except for the problem mentioned below And that's great, I don't
need to change it. But I was curious why my original code wouldn't work
so I tried some changes. Here's what I found:

If I change the array size from 256 to something smaller (128, 64, 32, ...)
it fails like before (pressing the right mouse button will cause the color
of the exit gadget to change). Also, if I set it to 8, all of the pen
numbers printed are 1. In the new example I added a palette gadget.
If the right button is clicked, colors 4 & 5 swap colors, even with the
array size set to 256. This doesn't seem to cause any problems but it
can't be right, can it?

Jack

------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/981643452/
---------------------------------------------------------------------_->