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/)
-   -   TCustomControl mit DragDrop? (https://www.delphipraxis.net/153114-tcustomcontrol-mit-dragdrop.html)

HJay 21. Jul 2010 16:22

TCustomControl mit DragDrop?
 
Es gibt die Prozedur TCustomControl.DragDrop(), aber alles weitere scheint zu fehlen oder ich finde es nur nicht?

Zum Beispiel bei TListBox muss man nur TListBox.DragMode := dmAutomatic setzen und TListBox.OnDragDrop und OnDragOver schreiben. Das gleiche Vorgehen geht aber nicht bei selbst abgeleiteten Klassen von TCustomControl.

Wie implementiert man in einen TCustomControl-Descendant Drag-and-Drop-Operationen?

(Delphi 6 Prof.)

HJay 27. Nov 2010 15:46

AW: TCustomControl mit DragDrop?
 
Darf ich meine Frage noch einmal stellen? Vielleicht gibt es ja inzwischen einen Teilnehmer, der eine Idee dazu hat.

Bummi 27. Nov 2010 16:26

AW: TCustomControl mit DragDrop?
 
TCustomControl>>TWinControl>>TControl

Die Properties sind hier schon vorhanden, nur Protected

Du brauchst sie nur im published Bereich Deiner Komponenete erwähnen:

Delphi-Quellcode:
published
property OnDragOver;
....


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:02 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