Inno Setup: OnHover event

前端 未结 2 1052
北海茫月
北海茫月 2020-12-20 04:45

Is it possible to simulate OnMouseHover event (to call a function when mouse is over some Inno Setup control) for Inno Setup controls, or is there any DLL libra

2条回答
  •  失恋的感觉
    2020-12-20 05:00

    The following code is from the documentation of Inno Unicode Enhanced Ver. As you can see the OnMouseEnter & OnMouseLeave functions, you can use them to implement your OnHover function.

      TButton = class(TButtonControl)
        procedure Click;
        property OnMouseEnter: TNotifyEvent; read write;
        property OnMouseLeave: TNotifyEvent; read write;
      end;
    

提交回复
热议问题