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/)
-   -   TRelativePanel (https://www.delphipraxis.net/213066-trelativepanel.html)

himitsu 17. Mai 2023 15:16

TRelativePanel
 
Moin moin,

mal ne rein interessierte technische Frage ...
Aber hat wer eine Ahnung, wie/was hier abgeht?




Ein TEdit innerhalb eines TRelativePanel (Vcl.WinXCtrls) hat urplötzlich neue Property und zugleich fehlen ihm Andere,
im Gegensatz zu einem TEdit außerhalb dieses Panels.
Also nur im Objektinspektor ... nicht in meinem Code.

Die neue Property liegen eigentlich im TRelativePanelControlItem (Vcl.WinXCtrls), sowie auch im IRelativePanelStatics (Winapi.UI.Xaml.ControlsRT).

Also innerhalb des Panels hat das Edit2 z.B. kein Left (mit 165), aber dafür ein RightOf (mit Edit1).




Gestern Abend über das gestolpert und die halbe Nacht Albträume von bekommen.
https://www.delphipraxis.net/213052-...elphi-gui.html

Uwe Raabe 17. Mai 2023 16:02

AW: TRelativePanel
 
Das wird über eine Implementierung von ISelectionPropertyFilter gemacht, die über RegisterSelectionEditor für eine Klasse registriert wird. Damit kann man vorhandene Properties im OI ausblenden und/oder hinzufügen.

Falls du ein Beispiel suchst: ImageName statt ImageIndex


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