You are here: Symbol Reference > JSGraphics Namespace > Classes > TJSCaptionControl Class > TJSCaptionControl Properties > TJSCaptionControl.ParentColor Property
LMD DialogPack
ContentsIndexHome
PreviousUpNext
TJSCaptionControl.ParentColor Property

Specifies where a control looks for its color information.

Pascal
property ParentColor;

To have a control use the same color as its parent control, set ParentColor to true. If ParentColor is false, the control uses its own Color property. 

 

Set ParentColor to true for all controls to ensure that all the controls on a form have a uniform appearance. For example, if ParentColor is true for all controls in a form, changing the background color of the form to gray causes all the controls on the form to also have a gray background. 

 

When the value of a control's Color property changes, ParentColor becomes false automatically.

Copyright © 2013 by LMD Innovative. All rights reserved.
Copyright © 2013 by LMD Innovative. All rights reserved.
What do you think about this topic? Send feedback!