[MWForum]Numeric colors in MW change under Win2K and XP
Wendy Petti
mwforum@lists.mathcats.com
Thu, 18 Dec 2003 17:51:56 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_001D_01C3C58F.A0CFE440
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Numeric colors in MW change under Win2K and XPRandal, when I tested your
same numbers with MW 2.05 and Windows XP, color 103 remained 103 with a
colorunder check; 90 remained 90, etc. And yet I too ran into this problem
a long time ago. I remember that a project stopped working until I changed
a certain color to 21.7 (which was *not* the color I had selected from the
palette!). I really don't remember if I had created the original project on
a Mac or on a PC. At one point my school switched from Macs to Windows 98
and then to Windows NT. The problem might have occurred after the switch to
NT.
I'm guessing that if you create a project from scratch now with Windows 2000
or XP, then the colors will remain as you expect them to be. And I *think*
they'll still function properly if viewed on a Windows 98 machine. But this
situation certainly concerns me because I've posted many projects online
which would be viewed by users with a wide variety of operating systems.
Every now and then someone writes to tell me that one of my projects doesn't
work, and perhaps this color problem is the reason.
Oh wait! I think I remember now! I think it makes a difference if your
machine is set to 256 colors or thousands of colors or millions of colors.
It was when we switched our lab from 256 colors to full color that I had to
alter some of my code which had been developed originally with a 256-color
setting.
Please let us know if this might have been your situation.
Wendy
-----Original Message-----
From: mwforum-admin@lists.mathcats.com
[mailto:mwforum-admin@lists.mathcats.com]On Behalf Of
Randal.T.Wortman@nwd01.usace.army.mil
Sent: Thursday, December 18, 2003 2:30 PM
To: mwforum@lists.mathcats.com
Subject: [MWForum]Numeric colors in MW change under Win2K and XP
Can anyone explain what is going on with my numeric colors ?
Using MW 2.05 on a Windows 98 platform I have no problem drawing a
rectangle and filling it with a color and then using colorunder to test for
a color, as in:
setc 90
fill
if colorunder = 90 [do_this]
However, when I move the code to a Windows 2000 or XP platform, the colors
that I set and the colors reported are often not the same:
setc 90
fill
show colorunder
80.1
setc 104
fill
show colorunder
104
setc 103
fill
show colorunder
102.8
Some colors stay the same as set, and some change to a different,
fractional number. So far, all fractional numbers appear to be precisely a
decimal tenth, but this is very confusing. It makes it fairly difficult to
use colorunder to test a color, unless you manually verify all the colors
that you have set. Anyone have any ideas?
Randal T. Wortman
------=_NextPart_000_001D_01C3C58F.A0CFE440
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Numeric colors in MW change under Win2K and =
XP</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D214424122-18122003><FONT face=3DArial =
size=3D2>Randal, when I=20
tested your same numbers with MW 2.05 and Windows XP, color 103 remained =
103=20
with a colorunder check; 90 remained 90, etc. And yet I too ran =
into this=20
problem a long time ago. I remember that a project stopped =
working=20
until I changed a certain color to 21.7 (which was *not* the color I had =
selected from the palette!). I really don't remember if I had =
created the=20
original project on a Mac or on a PC. At one point my school =
switched from=20
Macs to Windows 98 and then to Windows NT. The problem might have =
occurred=20
after the switch to NT.</FONT></SPAN></DIV>
<DIV><SPAN class=3D214424122-18122003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D214424122-18122003><FONT face=3DArial size=3D2>I'm =
guessing that if=20
you create a project from scratch now with Windows 2000 or XP, then the =
colors=20
will remain as you expect them to be. And I *think* they'll still =
function=20
properly if viewed on a Windows 98 machine. But this situation =
certainly=20
concerns me because I've posted many projects online which would be =
viewed by=20
users with a wide variety of operating systems. Every now and then =
someone=20
writes to tell me that one of my projects doesn't work, and perhaps this =
color=20
problem is the reason.</FONT></SPAN></DIV>
<DIV><SPAN class=3D214424122-18122003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D214424122-18122003><FONT face=3DArial size=3D2>Oh =
wait! I=20
think I remember now! I think it makes a difference if your =
machine is set=20
to 256 colors or thousands of colors or millions of colors. It was =
when we=20
switched our lab from 256 colors to full color that I had to alter some =
of my=20
code which had been developed originally with a 256-color=20
setting.</FONT></SPAN></DIV>
<DIV><SPAN class=3D214424122-18122003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D214424122-18122003><FONT face=3DArial size=3D2>Please =
let us know=20
if this might have been your situation.</FONT></SPAN></DIV>
<DIV><SPAN class=3D214424122-18122003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D214424122-18122003><FONT face=3DArial=20
size=3D2>Wendy</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B>=20
mwforum-admin@lists.mathcats.com=20
[mailto:mwforum-admin@lists.mathcats.com]<B>On Behalf Of=20
</B>Randal.T.Wortman@nwd01.usace.army.mil<BR><B>Sent:</B> Thursday, =
December=20
18, 2003 2:30 PM<BR><B>To:</B> =
mwforum@lists.mathcats.com<BR><B>Subject:</B>=20
[MWForum]Numeric colors in MW change under Win2K and =
XP<BR><BR></FONT></DIV>
<P><FONT face=3DArial size=3D2>Can anyone explain what is going on =
with my numeric=20
colors ?</FONT> </P>
<P><FONT face=3DArial size=3D2>Using MW 2.05 on a Windows 98 platform =
I have no=20
problem drawing a rectangle and filling it with a color and then using =
colorunder to test for a color, as in:</FONT></P>
<P><B><FONT face=3DSystem size=3D2>setc 90</FONT></B> <BR><B><FONT =
face=3DSystem=20
size=3D2>fill</FONT></B> <BR><B><FONT face=3DSystem size=3D2>if =
colorunder =3D 90=20
[do_this]</FONT></B> </P>
<P><FONT face=3DArial size=3D2>However, when I move the code to a =
Windows 2000 or=20
XP platform, the colors that I set and the colors reported are often =
not the=20
same:</FONT></P>
<P><B><FONT face=3DSystem size=3D2>setc 90</FONT></B> <BR><B><FONT =
face=3DSystem=20
size=3D2>fill</FONT></B> <BR><B><FONT face=3DSystem size=3D2>show=20
colorunder</FONT></B> <BR><B><FONT face=3DSystem =
size=3D2>80.1</FONT></B> </P>
<P><B><FONT face=3DSystem size=3D2>setc 104</FONT></B> <BR><B><FONT =
face=3DSystem=20
size=3D2>fill</FONT></B> <BR><B><FONT face=3DSystem size=3D2>show=20
colorunder</FONT></B> <BR><B><FONT face=3DSystem =
size=3D2>104</FONT></B> </P>
<P><B><FONT face=3DSystem size=3D2>setc 103</FONT></B> <BR><B><FONT =
face=3DSystem=20
size=3D2>fill</FONT></B> <BR><B><FONT face=3DSystem size=3D2>show=20
colorunder</FONT></B> <BR><B><FONT face=3DSystem =
size=3D2>102.8</FONT></B>=20
</P><BR>
<P><FONT face=3DArial size=3D2>Some colors stay the same as set, and =
some change=20
to a different, fractional number. So far, all fractional numbers =
appear to be=20
precisely a decimal tenth, but this is very confusing. It makes it =
fairly=20
difficult to use colorunder to test a color, unless you manually =
verify all=20
the colors that you have set. Anyone have any ideas?</FONT></P>
<P><B><I><FONT face=3DArial color=3D#0000ff>Randal T.=20
Wortman</FONT></I></B><I></I> </P></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_001D_01C3C58F.A0CFE440--