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 Spezielle Properties, wie ImageList, im ObjectInspector? (https://www.delphipraxis.net/172900-spezielle-properties-wie-imagelist-im-objectinspector.html)

Zacherl 28. Jan 2013 12:07

Spezielle Properties, wie ImageList, im ObjectInspector?
 
Hallo zusammen,

ist es möglich für meine eigene Komponente A eine Property zu erstellen, bei der ich im OI nur Komponenten des Typs B auswählen kann und auch die entsprechenden Vorschläge erhalte? Also praktisch wie die standard "Images" Eigenschaft, welche mich alle von TCustomImageList abgeleiteten Objekte auswählen lässt.

Viele Grüße
Zacherl

DeddyH 28. Jan 2013 12:15

AW: Spezielle Properties, wie ImageList, im ObjectInspector?
 
Ich bin nicht sicher, ob ich Dich richtig verstanden habe, aber wenn Du eine Property von einem bestimmten Typ deklarierst, offeriert IIRC Delphi Dir im OI automatisch nur Komponenten dieses Typs (siehe z.B. FocusControl eines TLabel vom Typ TWinControl).

Zacherl 28. Jan 2013 12:23

AW: Spezielle Properties, wie ImageList, im ObjectInspector?
 
Zitat:

Zitat von DeddyH (Beitrag 1200963)
Ich bin nicht sicher, ob ich Dich richtig verstanden habe, aber wenn Du eine Property von einem bestimmten Typ deklarierst, offeriert IIRC Delphi Dir im OI automatisch nur Komponenten dieses Typs (siehe z.B. FocusControl eines TLabel vom Typ TWinControl).

Das war wohl zu offensichtlich :wall: Danke dir :D


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