Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Delphi Treeview node manipulation (https://www.delphipraxis.net/171925-treeview-node-manipulation.html)

randy_dom 2. Dez 2012 16:52

Treeview node manipulation
 
Hello .

i have this treeview structure :

Code:
Users
  |_Online
  |_Offline
    |_ user1 --> current status offline
    |_ user2 --> current status Online
    |_ user3 --> current status offline
    |_ user4 --> current status online
what i want to do is when a user is online he will be deleted from offline node and moved to the Online node .
example for user2 and user4 , any help please


many thanks

Steku 3. Dez 2012 08:58

AW: Treeview node manipulation
 
Hi,

maybe you can use this topic as a starting point:
http://delphi.about.com/od/vclusing/l/aa010703a.htm

Within your treeview you have to identify which user(TreeViewNode) is online/offline and depending
on this info you have to delete the corresponding node from one parent node (_online) and add
a new node to the other parent node (_offline) - or vice versa...

Regards,
Steku

DeddyH 3. Dez 2012 09:22

AW: Treeview node manipulation
 
Delphi-Referenz durchsuchenTTreeNode.MoveTo

Sir Rufo 3. Dez 2012 10:04

AW: Treeview node manipulation
 
CrossPost: http://stackoverflow.com/questions/1...e-manipulation

@randy_dom please add crossposts by yourself


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