Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Something not just right
#1
When setting the color for a toolbar I noticed a problem. Your help screen says:

Set background and text color. Syntax:

/col color textcolor


Here color and textcolor are RGB colors, usually hexadecimal values (e.g., 0xFFFF80). The low-order byte (two symbols at the right) contains a value for the relative intensity of red; the second byte contains a value for green; and the third byte contains a value for blue. Value 1 to 31 will set one of the system colors, for example 2 is the desktop color.

But, when I programmed it, I noticed the red and blue were reversed. I worked around it, but I thought you might like to know, or, is this a problem with my system.

Thanks.
#2
In QM, like in Windows programming, color is represented 0xBBGGRR. It is not as in html. For example, 0xff0000 is blue, 0x0000ff or just 0xff is red.


Forum Jump:


Users browsing this thread: 1 Guest(s)