How to add mouse wheel support to a component descended from TGraphicControl?

后端 未结 6 1130
悲&欢浪女
悲&欢浪女 2020-11-28 15:20

I have created a delphi component which descends from TGraphicControl. Is it possible to add support for mouse wheels?

--- Edit ---

I\'ve exposed the Mou

6条回答
  •  执笔经年
    2020-11-28 16:10

    TGraphicControl descends from TControl, which already has mouse-wheel support. See the wm_MouseWheel message, the DoMouseWheel, DoMouseWheelDown, DoMouseWheelUp, and MouseWheelHandler methods, and the WheelAccumulator property.

提交回复
热议问题