Re: Forms45 - Problem with colors

From: Richard Vernick <rvernick_at_voicenet.com>
Date: 1997/06/03
Message-ID: <3394CE33.38D3_at_voicenet.com>#1/1


Nasier wrote:
>
> Steve Cosner wrote:
> >
> > When I use a Windows platform that is running at 256 colors (instead
> > of 64K colors), there is a problem setting the background colors on
> > text items and display items. These always revert back to one of the
> > 16 colors at the top left area of the color pallette. Even the grays
> > only use black, white, light gray or dark gray.
 

> > I would really appreciate hearing from anyone who might know anything
> > about this problem.
> >
> > Thanks to all,
> > Steve Cosner
> > QA dynamic utility form at: http://members.aol.com/stevec5088
> >
> > -------------------==== Posted via Deja News ====-----------------------
> > http://www.dejanews.com/ Search, Read, Post to Usenet
>
> I have had the same problem when using Designer/2000 template forms. ON
> closer inspection I found that many of the colours which were used for
> the items were palette custom colors (e.g the gray for the canvas was
> named 'canvas'; similarly there were also custom colors named 'button',
> 'control' etc.). When trying to reference these visual attributes in a
> form with a different color palette, I would get some really strange
> colour selections. I found the solution was to ensure that the same
> colour options (even better the same colour palette), should be
> available in both my new and reference forms.
>
> Hope this helps.
>
> Nasier.

We found out that the colors associated with a palette are 'positional'. You may notice in 1 form that the first position in the pallette (when selecting a line or fill color for an object) looks grey and is called 'canvas'. In another form, the first postion may look the same but may be named '10% Grey'.

We had the same problems and actually DID the same thing you did by COPYING ALL of the objects from one form to the next.

The solution was to save the palette to a file '.pal' and load it into the form we want. You can only do this if the pallette is 'Read/Write'. I think it's in the tool->options menu.

In any case, look in the online docs, search for 'palettes'

Good luck. Received on Tue Jun 03 1997 - 00:00:00 CEST

Original text of this message