AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Treeview node manipulation

Ein Thema von randy_dom · begonnen am 2. Dez 2012 · letzter Beitrag vom 3. Dez 2012
Antwort Antwort
randy_dom

Registriert seit: 28. Apr 2008
17 Beiträge
 
#1

Treeview node manipulation

  Alt 2. Dez 2012, 16:52
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
  Mit Zitat antworten Zitat
Steku

Registriert seit: 12. Mai 2008
181 Beiträge
 
Delphi 10.2 Tokyo Starter
 
#2

AW: Treeview node manipulation

  Alt 3. Dez 2012, 08:58
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

Geändert von Steku ( 3. Dez 2012 um 09:06 Uhr)
  Mit Zitat antworten Zitat
Benutzerbild von DeddyH
DeddyH

Registriert seit: 17. Sep 2006
Ort: Barchfeld
27.540 Beiträge
 
Delphi 11 Alexandria
 
#3

AW: Treeview node manipulation

  Alt 3. Dez 2012, 09:22
Delphi-Referenz durchsuchenTTreeNode.MoveTo
Detlef
"Ich habe Angst vor dem Tag, an dem die Technologie unsere menschlichen Interaktionen übertrumpft. Die Welt wird eine Generation von Idioten bekommen." (Albert Einstein)
Dieser Tag ist längst gekommen
  Mit Zitat antworten Zitat
Benutzerbild von Sir Rufo
Sir Rufo

Registriert seit: 5. Jan 2005
Ort: Stadthagen
9.454 Beiträge
 
Delphi 10 Seattle Enterprise
 
#4

AW: Treeview node manipulation

  Alt 3. Dez 2012, 10:04
CrossPost: http://stackoverflow.com/questions/1...e-manipulation

@randy_dom please add crossposts by yourself
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ‎ea 0a 4c 14 0d b6 3a a4 c1 c5 b9 dc 90 9d f0 e9 de 13 da 60)
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:49 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