|
|
|
|
|
- Font variable
- Color of an edit control
- Text color in a Static control
- Text color of a Button control
- Color of the text in a Radio Button or Check Box control
- Color of the text in a List Box or Combo Box control
- Color of a TreeView control
- Text color of a cell, row or column in a Table control
- Limitations
Color (Property) In french: Couleur
The Color property is used to get or change the font color for: - a variable of type Font.
- text displayed in a Static or Calculated control of a report.
- text displayed in a window control.
- text displayed in a page control.
- text in a menu option.
The effects of the Color property depend on the type of control (for more details, see "Remarks"). Remark: A Font variable is black by default. // The text color is modified according to the displayed value IF EDT_Total>15000 THEN EDT_Total.Color = LightRed END
Syntax <Result>: Integer or constant Color of the specified element. This color can correspond to: <Element used>: Control name or Font variable Name of element for which the text color must be found. This element can correspond to:- the name of a control in a window or in a page.
- the name of a report control.
- name of a variable of type Font.
<Element used>: Control name or Font variable Name of element for which the text color must be modified. This element can correspond to:- the name of a control in a window or in a page.
- the name of a report control.
- name of a variable of type Font.
<New color>: Integer or constant New color for the specified element. This color can correspond to: Remarks Font variable A font can be created from a Font variable. To define the font characteristics, use: - the FontCreate function.
- the Charset, Orientation, StrikeOut, Color, Bold, Italic, CharacterSpacing, LineSpacing, Name, Underline, Size and SizeUnit properties.
This font can be used: Assigning a font to a control: - if the Font variable has no specific color, the color of the text displayed in the control is kept.
- if the Font variable has a specific color, this color is applied to the text displayed in the control.
Color of an edit control The Color property is used to get and change the color of the text entered in a control.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|