| From: | |
| Date: | 01 Feb 2001 at 23:01:26 |
| Subject: | Re: Can someone look at this code? |
Hello Jack,
>> 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.
Probably because the screen has no free colours, which make ReAction
fall back on the standard 4 colour look.
>> 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?
When do you need to have the palette set? You never need to call
LoadRGB() when you use ObtainBestPen().
Either you call ObtainBestPen() after opening the screen, if you have
some colours you'd like to have set for the screen (but why? -- perhaps
because you want to give the screen a background image?) or you let
each window call ObtainBestPen() after opening, to allocate the colours
required for the window (the way to go).
Kind regards Allan
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/981065672/
---------------------------------------------------------------------_->