Page History
...
Effect | Description |
---|---|
Saturate | Saturates the image slightly so that normal images stand out more |
Grayscale | Displays the image in grayscale instead of full color |
Levitate | Displays the image slightly raised with a drop shadow |
Faded | Displays the image translucently over the background |
TextColor | Displays the image as in monochrome matching the text's current color. |
Default | The control draws the image normally if enabled or grayed out if disabled |
The second value of each field, the Condition value, is the condition in which the effect is to be used. Each field in this property as a like case statement. So, the property value might look something like this:
Code Block |
---|
Conditions<1> = "Levitate" :@VM:"Hot" Conditions<2> = "Default" :@VM:"Pressed" Conditions<3> = "SaturatedSaturate":@VM:"1" |
However, you can visualize the property to mean this:
...
Name | Operator(s) | Example |
---|---|---|
Logical OR | OR, || | "Tristate OR Checked" |
Logical AND | AND, && | "Hot AND Focused" |
Not | Not(expr), !expr | "Not(Focused)" |
...
The SRP Button Control allows the use of a limited set of keywords in your conditions. Keywords identify a particular state of the button. You may use the following keywords in your condition statement:
Keyword | Type | Description |
---|---|---|
Checked | Boolean | The button's toggle state. Checked means it's toggled on. |
Hot | Boolean | The button's hot state, which means the mouse is hovering over it |
Enabled | Boolean | The button's enabled state. |
Pressed | Boolean | The buttons's pressed state. |
Focused | Boolean | The buttons's focus state |
Tristate | Boolean | The buttons's toggle state. Tristate means it's neither checked or unchecked. That is, it's unknown. |
...
If your conditions do not seem to working, double check your syntax. The condition is case insensitive, but you must spell the keywords correctly.
...
Code Block |
---|
// Icon effects base on button states Conditions = "" Conditions<1> = "Levitate":@VM:"Hot" Conditions<2> = "Default":@VM:"Pressed" Conditions<3> = "SaturatedSaturate":@VM:"1" Set_Property(@Window:".OLE_BUTTON", "OLE.IconEffects", Conditions) |
...