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 TObjectList Rheinfolge ändern (https://www.delphipraxis.net/133607-tobjectlist-rheinfolge-aendern.html)

Eppos 5. Mai 2009 20:23


TObjectList Rheinfolge ändern
 
Hallo zusammen,

ist es möglich in einer TObjectList die Reihenfolge ändern?
Ich stelle mir das so vor:

Objekt 1
Objekt 2
Objekt 3

Jetzt soll Objekt 3 eins nach oben verschoben werden und Objekt 2 soll automatisch Objekt 3 werden.
Ist das möglich?

Vielen Dank!

alzaimar 5. Mai 2009 20:37

Re: TObjectList Rheinfolge ändern
 
Die Exchange-Methode der TObjectlist macht das.

Eppos 5. Mai 2009 21:20

Re: TObjectList Rheinfolge ändern
 
Perfekt! Danke!


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