Determining the Value of Colors (OpenInsight Specific)
At 23 JAN 2000 06:49:46PM rayc@symmetryinfo.com wrote:
To all,
Does anyone know how the various Color values are determined or "computed". It may have been discussed previously, but can't find any info on this site.
For example, if I define a custom color, I may have these values:
Hue 220 Red 255
Sat 240 Green 0
Lum 120 Blue 128.
How do I translate these values into a "value" that I can use programatically from within OpenInsight. For example, when I look at the Color equate, I see that the values are in the form of YELLOW=65535 or PURPLE=16711935.
I'm assuming that I can take the above values for Hue, Sat, and Lum combine them with R,G, and B and come up with some NUMBER that I can then use to set the color of my form, control, or whatever.
Any help or suggestion as to where I should look would be appreciated.
Thanks,
Ray
rayc@symmetryinfo.com onmouseover=window.status=imagine … ;return(true)"
Ray Chan ~ Symmetry Info
At 23 JAN 2000 08:46PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
From the Basic+ forecolor settings:
color=red + (green * 256) + (blue * 65536)
[/i]World leaders in all things RevSoft[/i]
At 23 JAN 2000 09:22PM dsig@teleport.com wrote:
Ray, Ray, Ray ..
Isn't it bad enough that you can change colors .. you want to calculate this value on the fly?
Remember .. changing the color of a control is 'modifying' it which is expressly forbidden in the license agreement.
dsig@teleport.com onmouseover=window.status=imagine … ;return(true)"
David Tod Sigafoos ~ SigSolutions
voice: 503-639-8080
At 24 JAN 2000 01:44AM rayc@symmetryinfo.com wrote:
Dave, my man,
Well it may be handy to change color on the fly, but that is not my intent at the moment. I'm just trying to extent the color alternatives available. The standard options is not very impressive and doesn't give me the "control" I may want.
For sure, my OI app ought to look better than my AREV app and I want it to look the same regardless of where it's installed.
To continue your line of thought, surely RTI would not object to changing the color of a control would it? In EXCEL, I can change the color of a cell (on the fly) by using Conditional Formatting if some conditions are not met, e.g., two numbers don't agree.
Well, enough of this chatter. I need to simmer down. Time to catch some "z's".
Talk to you later,
Ray
rayc@symmetryinfo.com onmouseover=window.status=imagine … ;return(true)"
Ray Chan ~ Symmetry Info
At 24 JAN 2000 05:24AM Eric Emu wrote:
Ray, whatever colors you choose, remember that 15% of the adult male population has some form of red-green or other color discrimination insensitivity.
For emus it's worse - we only see things as black and tan.
Eric
At 24 JAN 2000 06:25AM Oystein Reigem wrote:
David,
Remember .. changing the color of a control is 'modifying' it which is expressly forbidden in the license agreement.
I hate it when you guys joke about these things. I thought perhaps I'd check the Licensing section for news today, but now I'm afraid I'll find what you say is true…
![]()
On the other hand - if it is forbidden, one can always have two controls with different colours and alternate which is visible.
![]()
Btw - the same strategy can to some extent be used if it turns out it's illegal to change the value of an edit control…
![]()
- Oystein -
At 24 JAN 2000 10:21AM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
But if you can't change colours you can't make visible/invisible.
World Leaders in all things RevSoft
At 24 JAN 2000 10:45AM rayc@symmetryinfo.com wrote:
Eric,
I will keep that in mind. As I think of my "users", most are female and I think they tend to like color.
Thanks,
rayc@symmetryinfo.com onmouseover=window.status=imagine … ;return(true)"
Ray Chan ~ Symmetry Info
At 24 JAN 2000 10:53AM rayc@symmetryinfo.com wrote:
To RTI,
]But if you can't change colours you can't make visible/invisible.Symmetry Info[/url]
Ray Chan ~ Symmetry Info