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 collapse / expand sub-properties (Wie gehts das)? (https://www.delphipraxis.net/150042-collapse-expand-sub-properties-wie-gehts-das.html)

neutrino 6. Apr 2010 08:28


collapse / expand sub-properties (Wie gehts das)?
 
Hi,
schreibe Delhpi- Components und möchte, dass Properties von Sub-Componenten im IDE collapen und expanden.
Beispiel: Font-property in TForm ( oder wo auch immer.) Anchors-Property ist nicht so gut als beispile, da die Sub-properties alle vuom selben Typ sind und das ganze nach property-array ausssieht.

Frage noch mals ganz plakativ: Wie macht das Delphi, dass vor der Font property ein Plus ist und diese dann expanded? :wall:

Kann mir jemand sagen, wie man das angeht?http://www.delphipraxis.net/posting.php?mode=iframe
Ich weiss nicht einmal, unter welchen Stichworten ich in der Help suchen sollte. Zumindest unter den naheliegenden finde ich nichts.

Danke im Voraus.

mkinzler 6. Apr 2010 09:02

Re: collapse / expand sub-properties (Wie gehts das)?
 
Stichwort: Property Editor

Teekeks 6. Apr 2010 09:37

Re: collapse / expand sub-properties (Wie gehts das)?
 
Ich weis nicht wie das bei Delphi ist, aber bei Lazarus ist Font eine extra Klasse mit extra propertys, so mach ich das auch immer bei mir :)

Hawkeye219 6. Apr 2010 09:42

Re: collapse / expand sub-properties (Wie gehts das)?
 
Hallo neutrino,

Beispiele für Mengen- und Objekteigenschaften findest du in diesem Beitrag. Bei der Objekteigenschaft ist entscheidend, dass sie vom Typ TPersistent abgeleitet ist.

Gruß Hawkeye

neutrino 6. Apr 2010 16:38

Re: collapse / expand sub-properties (Wie gehts das)?
 
DANKE an die prompten Antworter. :hi:
Speziell Hawkeye219.
Der Verweis auf das Dok ist sehr fein und die Beispiele dort funktionieren!!!!

auch das Stichwort von mkinzler hat geholfen!

nochmals DANKE :hello:


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