Skip to content

OnHotItemEntering - cToolbarButton

Received whenever the mouse cursor enters the bounds of the button

Type: Event

Parameters

Parameter Type Description
hoButtonLeaving Handle The object-handle of the button that was previously hot, or zero, if no button was hot

Syntax

Procedure OnHotItemEntering Handle hoButtonLeaving

Description

The OnHotItemEntering event is received whenever the mouse cursor enters the bounds of the button. At this time, the button is referred to as hot and the hot image will be displayed (if you had set the phoImageListHot property). However, this event can be redirected by setting the phmOnHotItemEntering property to a different message-handle.

Col 1 Col 2
Note: You can also use the cWinControl's OnMouseMove mouse message in the toolbar.

Sample

Procedure OnHotItemEntering Integer hoButtonLeaving Returns Integer 
    ShowLn 'Entering ' (Name(self)) ;
    ' Leaving ' (If(hoButtonLeaving, Name(hoButtonLeaving), "None"))
End_Procedure