top of page

Fill Property

Click on the below link to read the fill property in details



Configure the style of a control based on how the user interacts with it.


You can specify colors in many ways:

  • Color enumeration: Specify color names from cascading style sheets, as in these examples:

1. Color.Red

2. Color.Indigo

  • ColorValue function: Specify text strings such as color names from cascading style sheets and hex-code notation (#), as in these examples:

1. ColorValue( "AliceBlue" )

2. ColorValue( "#ff00ff" )

  • ColorFade function: Specify how faded a color is, from fully black (-100%) to fully white (100%), as in this example:

1. ColorFade( Color.Red, 50% )

  • RGBA function: Specify the red, green, and blue components of a color from 0 to 255, and specify an alpha channel from 0% (fully transparent) to 100% (fully opaque), as in this example:

1. RGBA( 255, 0, 255, 25% )


Color properties can also reference other color properties. For example, Label.PressedColor may be set to the formula Label1.Color, automatically cascading a change from one property to another.


Normal

These properties are in effect normally, when the user is not interacting with the control.


1. BorderColor – The color of a control's border.

2. BorderStyle – Whether a control's border is Solid, Dashed, Dotted, or None.

3. BorderThickness – The thickness of a control's border.

4. Color – The color of text in a control.

5. Fill – The background color of a control.


Focused

These properties are in effect when the control is focused.


1. FocusedBorderColor – The color of a control's border when it has focus.


2. FocusedBorderThickness – The thickness of a control's border when it has focus.


Disabled

These properties are in effect when the control is disabled. A control can be disabled if the Disabled property is set to true.


1. DisabledBorderColor – The color of a control's border if the control's DisplayMode property is set to Disabled.


2. DisabledColor – The color of text in a control if its DisplayMode property is set to Disabled.


3. DisabledFill – The background color of a control if its DisplayMode property is set to Disabled.


Hover

These properties are in effect when the user hovers over the control with a mouse.


1. HoverBorderColor – The color of a control's border when the user keeps the mouse pointer on that control.


2. HoverColor – The color of the text in a control when the user keeps the mouse pointer on it.


3. HoverFill – The background color of a control when the user keeps the mouse pointer on it.


Pressed

These properties are in effect when a button or image control is pressed.


1. PressedBorderColor – The color of a control's border when the user taps or clicks that control.


2. PressedColor – The color of text in a control when the user taps or clicks that control.


3. PressedFill – The background color of a control when the user taps or clicks that control.


Selection

These properties are in effect when the user selects an item in a control.


1. SelectionColor – The text color of a selected item or items in a list or the color of the selection tool in a pen control.

2.SelectionFill – The background color of a selected item or items in a list or a selected area of a pen control.



0 comments

Recent Posts

See All
bottom of page