C (2/257)

From:
Date:01 Feb 2001 at 04:01:54
Subject:Re: Can someone look at this code?

Hello Giles

On 31-Jan-01, Giles Burdett wrote:

>> I'm still trying to figure out the problem I am having with colors
>> changing in my screen when I use SA_SharePens. I've made up
>> a quick example of the problem and posted it at
>> http://my.voyager.net/~jyork
>> If someone could take a look at it and see where the problem is
>> at I would greatly appreciate it.
>
> Just tried your program, and the executable in the archive doesn't have
> the problem you describe. In the source, the only occurence of
> WA_SharePens is in the comment at the top of the file! Was this intended?

No, just fat fingers and slow eyes. :/ It should have been SA_SharePens. I
just
download it myself and the code is correct. It's one of the screen tags
(see
clip from it below). But are you sure about the executable? I just ran the
one
I downloaded and it failed as I described. Are you pressing the right mouse

button? When I start it on my system the background of the exit gadget is
white. When I press the rmb it changes to blue and then different colors
with each additional click.

if ((scr = OpenScreenTags(NULL, SA_DisplayID, HIRES | LACE,
SA_PubName, "MyScreen",
SA_Depth, 4,
SA_Colors, colorspecs,
SA_Overscan, OSCAN_TEXT,
SA_Pens, (ULONG)pens,
SA_SharePens, TRUE, // problem
goes away if removed
SA_AutoScroll, TRUE,
TAG_DONE)))

Jack

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