Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi OnMouseWheel bei TPaintBox (https://www.delphipraxis.net/16313-onmousewheel-bei-tpaintbox.html)

Shaman 14. Feb 2004 23:53


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

APP 16. Feb 2004 11:56

Re: OnMouseWheel bei TPaintBox
 
Hallo Shaman,

Peter Below antwortete in der NG "borland.public.delphi.objectpascal" auf diese Frage mit:
Delphi-Quellcode:
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.
p.s. (ungetestet) + funktioniert aber erst ab D5 aufwärts.


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