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

后端 未结 6 1126
悲&欢浪女
悲&欢浪女 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:13

    Only TWinControl descendants can receive mouse wheel messages. TGraphicControl is not a Window based control and therefore can not. It could work if the VCL routes the messages to the TGraphicControl, but apparently does not. You could descend from TCustomControl and then it would work.

提交回复
热议问题