bitbtn ParentColor property
Return to Introduction  Previous page  Next page
Applies to
acBitBtn component.  

Declaration
property ParentColor: Boolean;  

Description
The ParentColor property for the acBitBtn component determines where a button looks for its color information.  
 
To have a control use the same color as its parent control, set ParentColor to True. For example, if the ParentColor of a button on a panel is True, the button has the same color as the panel. If ParentColor is False, the control uses its own Color property.  
 
Set ParentColor to True for all controls in order 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.  
 
To specify a different color for a particular control, assign the desired color to that control's Color property, and ParentColor becomes False automatically.  

See also
Color property.