mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2024-05-12 06:50:12 +00:00
Page:
Color properties
Pages
Align
BackStyle
BeforeInit
BeforeUnload
BeforeUpdateDisplay
Button
Caption
Checkbox
Color properties
Constants
Disabled
Events
Focus events
Font
Frame
Global Variables
HasBorder
Hidden
Home
KeyPress
Keyboard modifiers
Label
List methods
List
LoadImage
Mask
Menus
MessageBox Function
Methods
Min and Max
Mouse events
NumericTextbox
OnLoad
PasswordField
Picture box
PictureBox Drawing
Position and size
Progress bar
Properties
Radio button
SetCaption
SetFocus
Stretch
Text
TextChanged
Textbox
Toggle switch
Tool tip
Track bar
Value
ValueChanged
__UI_ prefix
__UI_ForceRedraw
__UI_KeepScreenHidden
__UI_KeyHit
__UI_UnloadSignal
6
Color properties
Fellippe Heitor edited this page 2021-12-22 12:12:15 -03:00
Table of Contents
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%)
Border
Some controls can have a border around them, and you change its color using the BorderColor property:
Control(ControlID).BorderColor = _RGB32(Red%, Green%, Blue%)