PDA

Click to See Complete Forum and Search --> : Why do I get different values for the color everytime? ("Point" method)


Jefftoe
Sep 1st, 1999, 10:31 PM
This has happened to me a lot, in several different ways, but basically (in this case)
using a map, where States are a solid color, and reading the cursor position in the mousemove event... then doing
picture1.point (x,y) to get the color. (long integer) Same picture, same program, everything, but different values on each machine!!! why? How do I prevent that?
I have a big case statement as such...

select case lReturnedColor
case 78346
form1.caption = "Texas"
case 83988
form1.caption = "Minnesota"

End Select

You get the picture...

DrBrain
Sep 2nd, 1999, 08:53 PM
I'm not sure, but I might have something to do with how many colors the screen shows. Check if both computers use the same color-settings. Allso try with system-colors.

Mail me at osmert@online.no if there was something that you didn't understand.