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 probleme mit eigener komponente (TCustomControl) (https://www.delphipraxis.net/97754-probleme-mit-eigener-komponente-tcustomcontrol.html)

Weazy 15. Aug 2007 16:43


probleme mit eigener komponente (TCustomControl)
 
Ich habe eine Komponente erstellt, welche von TCustomControl abgeleitet ist. Wenn ich nun allerdings eine andere Komponente auf meine setzen will, so ist diese kein child und einfach im hintergrund! An was könnte das liegen?

oki 15. Aug 2007 16:46

Re: probleme mit eigener komponente (TCustomControl)
 
Hatte ich auch grad.

Nehm in den Constructor folgenes mit auf:
Delphi-Quellcode:
  ControlStyle := [csAcceptsControls, csCaptureMouse, csClickEvents,
    csSetCaption, csOpaque, csDoubleClicks, csReplicatable, csPannable];
Ich denke für dich ist csAcceptsControls wichtig.

Gruß oki

Weazy 15. Aug 2007 21:37

Re: probleme mit eigener komponente (TCustomControl)
 
Liste der Anhänge anzeigen (Anzahl: 1)
Danke, jetzt funktioniert es! Werde meine komponente mal raufladen wenn sie fertig ist. Hier eine kleine Vorschau :-) Zum schliessen einfach hineinklicken...


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