MouseOverStyle and MouseOverStyles Properties

Applications often change the appearance of controls as the mouse enters. To simplify this process, all controls have a further pair of properties: MouseOverStyle and MouseOverStyles.

As with Style and Styles, the control can be defined as having an individual MouseOverStyle, or multiple MouseOverStyles can be applied at runtime.

Define_Com Class(#Prim_labl) name(#ValueCaption) Caption('Details') MouseOverStyle(#MyStyles<Emphasis>)

The Visual LANSA runtime automatically adds the style when the mouse enters the control and removes it again as soon as the mouse leaves. This saves you cluttering the code with multiple MouseEnter and MouseLeave routines.