Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi TWinControl und OnMouseWheel (https://www.delphipraxis.net/51266-twincontrol-und-onmousewheel.html)

Minz 9. Aug 2005 13:58


TWinControl und OnMouseWheel
 
Hallo,

TWinControl hat das Event OnMouseWheel. Die History-Anzeige in der Delphi-Hilfe zeigt an, dass TDBGrid ein TWinControl ist. Demnach müsste TDBGrid doch auch OnMouseWheel kennen?! Wieso tut es das nicht?

Thx Minz

tigerman33 9. Aug 2005 16:57

Re: TWinControl und OnMouseWheel
 
Ich kann das jetzt im Moment nicht so direkt abchecken, aber ich vermute mal, dass TWinControl OnMouseWheel als protected deklariert und TDBGrid es nicht published.

Wenn das so ist tut's das:

Delphi-Quellcode:
type TMyDBGrid = class(TDBGrid)
     published
       property OnMouseWheel;
     end;

type TForm1 = class(TForm)
       ... // der übliche Kram
       DBGrid1: TMyDBGrid; // vorher: TDBGrid
       ...
     end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:11 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz