Results 1 to 3 of 3

Thread: Problem with colors

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    5

    Question Problem with colors

    Hi there!I have made one little program with colors but I have this problem.While in my PC the backcolor of the form is red=216 green=208
    blue=200 when i run it in another computer it doesn't work out as in this computer the backcolor of the form is red=192 green=192 and blue=192.I appreciate if anyone can help me!

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    The backcolor is &H8000000F& by default which depends on the system, therefore it's the color the user selected in his display properties..

    If you want the Form/Label/whatever to have the same color on every computer you need to set the color to a absolute value like &H00C0C0C0&.

    All colors beginning with &H80... are system-dependant..

  3. #3
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Also, that kind of colors only display properly in 24-bits color resolutions. If he has 16-bits or 8-bits, they'll be "rounded" to another color.
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width