IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Performs various operations on the specified controls: More...
Public Member Functions | |
ControlManipulator () | |
ControlManipulator (params Control[] controls) | |
Constructs control manipulators, initialized with the specified controls to be manipulated. More... | |
void | RemoveAllControls () |
Removes all manipulated controls from the object. More... | |
void | RemoveControl (Control control) |
Removes the specified control from this object, if it contains it. More... | |
void | AddControl (Control control) |
void | AddControls (params Control[] controls) |
void | SaveProperties () |
void | RestoreProperties () |
void | Blink (int numBlinks=2, double blinkIntervalSeconds=0.2, params Control[] controls) |
void | Blink (Color blinkBackground, int numBlinks=2, double blinkIntervalSeconds=0.2, params Control[] controls) |
void | StartBlinking () |
Starts blinking the control. More... | |
void | StopBlinking () |
Interrups blinking process, if it is currently happening. It is ensured that controls' normal background will be reset before timer is actually shut off. More... | |
Protected Member Functions | |
void | ApplyBlinkColor () |
void | ApplyNormalColor () |
Static Protected Attributes | |
static Color | DefaultBlinkColor = Color.Orange |
Properties | |
Dictionary< Control, ControlPropertyStore > | Controls [get] |
Dictionary that contains controls, and for each control it contains a storage object that saves and restores control's state when necessary. More... | |
System.Windows.Forms.Timer | BlinkTimer [get] |
Timer used for blinking, has pre-installed event handler. Created as necessary (azy evaluation). More... | |
Color | BlinkBackColor [get, set] |
Background color used for blinking. More... | |
double | BlinkIntervalSeconds [get, set] |
Interval between color switches, in seconds. More... | |
int | BlinkIntervalMs [get, set] |
Interval between successive blinks, in milliseconds. Bound to BlinkIntervalSeconds, so these properties can be used interchangeably, dependent on which time unit you prefer to use. More... | |
int | NumBlinks [get, set] |
Number of blinks. More... | |
bool | IssBlinkOn [get, set] |
Indicates whether blinking is currently switched on. More... | |
int | NumPerformedBlinks [get, set] |
bool | DoBlink [get, set] |
Private Member Functions | |
void | BlinkTimer_Tick (object sender, EventArgs e) |
Timer event handler that performes blining of control in the specified color. More... | |
Private Attributes | |
Dictionary< Control, ControlPropertyStore > | _controls = new Dictionary<Control, ControlPropertyStore>() |
System.Windows.Forms.Timer | _timer |
Color | _blinkBackColor = Color.Orange |
double | _blinkIntervalSeconds = 0.2 |
int | _numBlinks = 2 |
bool | _isBlinkOn = false |
bool | _doBlink1 = false |
Performs various operations on the specified controls:
- Blinks the control.
|
inline |
|
inline |
Constructs control manipulators, initialized with the specified controls to be manipulated.
controls |
|
inline |
Removes all manipulated controls from the object.
|
inline |
Removes the specified control from this object, if it contains it.
control |
|
inline |
|
inline |
|
inline |
References IG.Forms.ControlPropertyStore.SaveProperties().
|
inline |
References IG.Forms.ControlPropertyStore.SaveProperties().
|
inline |
|
inline |
|
inline |
Starts blinking the control.
|
inline |
Interrups blinking process, if it is currently happening. It is ensured that controls' normal background will be reset before timer is actually shut off.
|
inlineprotected |
|
inlineprotected |
|
inlineprivate |
Timer event handler that performes blining of control in the specified color.
|
private |
|
private |
|
staticprotected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
getprotected |
Dictionary that contains controls, and for each control it contains a storage object that saves and restores control's state when necessary.
|
getprotected |
Timer used for blinking, has pre-installed event handler. Created as necessary (azy evaluation).
|
getset |
Background color used for blinking.
|
getset |
Interval between color switches, in seconds.
This is actually the time of half of a blink (the time interval in which one of two colors is displayed.)
|
getset |
Interval between successive blinks, in milliseconds. Bound to BlinkIntervalSeconds, so these properties can be used interchangeably, dependent on which time unit you prefer to use.
|
getset |
Number of blinks.
|
getsetprotected |
Indicates whether blinking is currently switched on.
When true, the BlinkTimer tick handlers will alternately switch background colors of controls and cause blinking in this way.
|
getsetprotected |
|
getsetprotected |