Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Panel "Parent Color" setting
Sun, Apr 8 2012 8:58 PMPermanent Link

Jan Ferguson

Data Software Solutions, Inc.

Team Elevate Team Elevate

Tim,

While working on a test project, I noted that using a panel component
with the ParentColor property set to True, the color will come out as a
white background color (I have the parent form set to clWheat.)

When I changed the ParentColor property to False, the color (which was
already set to clWheat when I chose the component) came out properly on
the web site.

Note that in the IDE, the color will show correctly but will not when
compiled unless the ParentColor property is set to False.

--
Jan Ferguson
Mon, Apr 9 2012 2:07 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Jan,

<< While working on a test project, I noted that using a panel component
with the ParentColor property set to True, the color will come out as a
white background color (I have the parent form set to clWheat.)

When I changed the ParentColor property to False, the color (which was
already set to clWheat when I chose the component) came out properly on the
web site.

Note that in the IDE, the color will show correctly but will not when
compiled unless the ParentColor property is set to False. >>

Hmm, I'm not seeing this in the latest build.  If I change the color of a
TPanel to something other than the normal background at design-time, then
the ParentColor property is properly set to False.  If I then run the
application, the panel color is the proper "new" color.

If I then change the ParentColor property back to True at design-time, then
the Color property is updated properly back to the same as the form, and
then when I run the application, the panel is the same color as the form.

If you have any more information on the steps that you took, it would be
appreciated.

Thanks,

--
Tim Young
Elevate Software
www.elevatesoft.com
Mon, Apr 9 2012 2:34 PMPermanent Link

Jan Ferguson

Data Software Solutions, Inc.

Team Elevate Team Elevate

Hi Tim,

Actually, all I did was to place a TPanel on the form. The ParentColor
property was set to True and the color property was already set the
same as the parent form...in this case clWheat. Yet when the project is
compiled, the color is not the parent color (it comes up white or
clFormBackground...can't tell which) and in my case it was not clWheat.

Yet if I change the ParentColor property to "False" the color which was
there when the TPanel component was placed on the form, will show
correctly....even though it *IS* the parent color.

The steps I took were:
1. Change the Color property of a form to something different (in my
case I used clWheat)
2. Please a TPanel component on the form
3. The Color of ther TPanel component should show the same color
(clWheat) as the form.
4. Compile the project and that panel will show a default color.
5. Change the TPanel component's ParentColor property to "False" and
recompile.
6. The panel will now show with the correct color (clWheat).

--
Jan


Tim Young [Elevate Software] wrote:

> Jan,
>
> << While working on a test project, I noted that using a panel
> component with the ParentColor property set to True, the color will
> come out as a white background color (I have the parent form set to
> clWheat.)
>
> When I changed the ParentColor property to False, the color (which
> was already set to clWheat when I chose the component) came out
> properly on the web site.
>
> Note that in the IDE, the color will show correctly but will not when
> compiled unless the ParentColor property is set to False. >>
>
> Hmm, I'm not seeing this in the latest build.  If I change the color
> of a TPanel to something other than the normal background at
> design-time, then the ParentColor property is properly set to False.
> If I then run the application, the panel color is the proper "new"
> color.
>
> If I then change the ParentColor property back to True at
> design-time, then the Color property is updated properly back to the
> same as the form, and then when I run the application, the panel is
> the same color as the form.
>
> If you have any more information on the steps that you took, it would
> be appreciated.
>
> Thanks,

Tim
Wed, Apr 11 2012 1:15 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Jan,

<< The steps I took were: >>

Okay, I've got it now, and it's fixed.

Thanks very much,

--
Tim Young
Elevate Software
www.elevatesoft.com
Image