Control - MouseOverStyles Property

MouseOverStyles is a collection of styles to be applied to a control when the mouse is over it

Member of Control (PRIM_CTRL)

Data Type - Collection ofPRIM_VS.Style - Style used to define foreground and background appearance


The MouseOverStyles property allows for one or more Styles to be applied when the mouse enters the physical bounds of the control.
They will be removed when the mouse leaves the control bounds.
MouseOverStyles allows for more complex programmatic appearance changes to be coded. Rather than relying on the declarative single MouseOverStyle, the developer is free to add as many style layers as required.
MouseOverStyles negates the need to code many MouseEnter and corresponding MouseLeave events, instead allowing for a for the styles to be added and managed at runtime.
Setting the MouseOverStyle property will remove all existing MouseOverStyles.

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020