CustomButton.PreProcessStyle Event
Overrides style attribute on the button right before rendering. The override is for current rendering and alter base properties of the button.

PreProcessStyle(
style
as EinhugurCustomButtons.CustomButtonStyleSet,
isEnabled
as Boolean,
isHot
as Boolean,
splitButtonIsHot
as Boolean,
isDown
as Boolean,
isDarkMode
as Boolean,
isHighContrastMode
as Boolean)
Parameters
- style
- Handle to style. You can manipulate this in the event, doing so will affect current rendering but not base properties of the button.
The style you get here will already have resolved if it is the default style or dark mode style depending on if System is in dark mode and if you had it set to have different dark mode style or not. - isEnabled
- True if the rendering is for Enabled button else false.
- isHot
- True if mouse is hoovering over the button. Note that meaning of this is altered when combined with the splitButtonIsHotParameter.
- splitButtonIsHot
- If set to true then this parameter will say that only the right side drop down part is either hot or down. (Use in combination with isHot and isDown parameters to know if it is hot or down)
- isDown
- True if mouse is down over the button. Note that meaning of this is altered when combined with the splitButtonIsHotParameter.
- isDarkMode
- True if we are rendering in dark mode. On Linux this parameter is always false.
- isHighContrastMode
- True if the macOS is set to high contrast mode. On Windows and Linux this parameter is always false.
Remarks
See Also
CustomButton Control