Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

EffectDescription
SaturateSaturates the image slightly so that normal images stand out more
GrayscaleDisplays the image in grayscale instead of full color
LevitateDisplays the image slightly raised with a drop shadow
FadedDisplays the image translucently over the background
TextColorDisplays the image as in monochrome matching the text's current color.
DefaultThe 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:

...

NameOperator(s)Example
Logical OROR, ||"Tristate OR Checked"
Logical ANDAND, &&"Hot AND Focused"
NotNot(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:

KeywordTypeDescription
CheckedBooleanThe button's toggle state. Checked means it's toggled on.
HotBooleanThe button's hot state, which means the mouse is hovering over it
EnabledBooleanThe button's enabled state.
PressedBooleanThe buttons's pressed state.
FocusedBooleanThe buttons's focus state
TristateBooleanThe 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)

...