Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2024-05-12 06:50:12 +00:00
6 Color properties
Fellippe Heitor edited this page 2021-12-22 12:12:15 -03:00

The color properties hold _UNSIGNED LONG values representing the _RGB32 color that will be used to print a control's caption or text. You can also pass color values using hexadecimal values (using the prefix &H) directly.

Foreground and background

Control(ControlID).ForeColor = _RGB32(Red%, Green%, Blue%)
Control(ControlID).BackColor = _RGB32(Red%, Green%, Blue%)

Selected items

The SelectedForeColor and SelectedBackColor properties refer to selected items in lists and menus.

Control(ControlID).SelectedForeColor = _RGB32(Red%, Green%, Blue%)
Control(ControlID).SelectedBackColor = _RGB32(Red%, Green%, Blue%)


Some controls can have a border around them, and you change its color using the BorderColor property:

Control(ControlID).BorderColor = _RGB32(Red%, Green%, Blue%)