From: | |
Date: | 01 Feb 2001 at 19:33:49 |
Subject: | Re: Can someone look at this code? |
Hello Allan
On 01-Feb-01, Allan Odgaard wrote:
> Hello Jack,
>
>>> As I understand it, setting SharePens will only make intuition
>>> allocate the pens used for the DrawInfo-structure, thus the colours
>>> you supply with SA_Colors are only stored (i.e. using LoadRGB())
>> Sounds like it could be the case since another way I can make it fail
>> is by calling a requester generated by Reaction. So, do you know how I
>> go about locking the pens?
>
> Either use graphics.library/ObtainPen or don't set SA_SharePens.
The only reason I am using SA_SharePens is so the program will
recognize the style setting in Reaction Prefs. Without the tag, this
setting is ignored.
> The best is of course to use ObtainBestPen for all your colours to get
> optimal pen sharing.
I have used ObtainBestPen before but always after a window was
opened so I'm not sure how I would do this in this case. Would I open
the screen, loop through my color settings using ObtainBestPen and use
the result with LoadRGB to set the screens colors before opening the
window?
Jack
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/981057021/
---------------------------------------------------------------------_->