![]() |
OnMouseWheel bei TPaintBox
Hallo zusammen
Weiss jemand, wie man direkt bei einer PaintBox auf das Mausrad reagieren kann? WM_MOUSEWHEEL wird scheinbar nicht empfangen... Gruss Shaman |
Re: OnMouseWheel bei TPaintBox
Hallo Shaman,
Peter Below antwortete in der NG "borland.public.delphi.objectpascal" auf diese Frage mit:
Delphi-Quellcode:
p.s. (ungetestet) + funktioniert aber erst ab D5 aufwärts.
unit ExPaintBox;
interface uses Windows, Messages, SysUtils, Classes, Controls, ExtCtrls; type TExPaintBox = class(TPaintbox) private { Private declarations } protected { Protected declarations } public { Public declarations } published { Published declarations } property OnMouseWheel; property OnMouseWheelDown; property OnMouseWheelUp; end; procedure Register; implementation procedure Register; begin RegisterComponents('Samples', [TExPaintBox]); end; end. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:04 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz