From: | |
Date: | 02 Feb 2001 at 17:46:04 |
Subject: | Re: Can someone look at this code? |
Hello Jack,
>> It doesn't, it just picks a colour register that is already set,
>> to the closest requirements you ask for..
> So it doesn't sound like this is what I need.
It does allocate colours (see my other reply).
>> I believe the colour register for a new screen are set to a default
>> value upon opening, or the same as a cloned screen, if you did that.
> This is my understanding too. That's the purpose of the tags in
> OpenScreenTags AFAIK.
It doesn't necessarily set all colours upon opening. Not if you enable
palette sharing for the screen (SA_SharePens).
> This I don't understand. Doing a LoadRGB will cause the windows
> colors to change after the program is up and running. I've never
Yes, if you modify pens which are in use. But you're not really allowed
to do that!
> seen a program behave this way. Colors are always set the way
> you want them when the program starts, not after it is started.
I'd imagine that 99% of all programs use ObtainBestPen. You may only use
LoadRGB() if you've allocated private pens (or if you're dealing with
your own custom screen).
Kind regards Allan
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/981133211/
---------------------------------------------------------------------_->