Autor Beitrag
sahib
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117

Win 2000 SP4+
Delphi 5 Prof.
BeitragVerfasst: So 17.07.05 23:36 
Hallo.

Ich füge programmgesteuert einen Knoten zum Baum hinzu und möchte den Text gleich im geöffneten 'Edit-Feld' haben. Der Nutzer soll also nicht erst das Item anklicken müssen.

Wie kann ich das bewerkstelligen?

Danke und einen schönen Wochenstart,
Christian
Sprint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 849



BeitragVerfasst: So 17.07.05 23:48 
ausblenden Delphi-Quelltext
1:
2:
  with TreeView1 do
    TreeView_EditLabel(Handle, Items.Item[0].ItemId);

_________________
Ciao, Sprint.
sahib Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117

Win 2000 SP4+
Delphi 5 Prof.
BeitragVerfasst: Mo 18.07.05 08:49 
Hallo Sprint.

Vielen Dank für Deine Antwort. In der ComCtrls habe ich wirklich EditLabel gefunden - sah mir nämlich ein bischen merkwürdig aus. Aber wie aufrufen? Delphi kennt den Befehl nicht.

Übrigens sind wir ja praktisch Nachbarn - ich wohne in Oldenburg.

Viele Grüße,
Christian
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Mo 18.07.05 09:29 
Probiers mal mit
ausblenden Delphi-Quelltext
1:
TreeNode1.EditText;					


TreeNode1 ist deine gerad eneu erzeugte TreeNode...



MrSaint

_________________
"people knew how to write small, efficient programs [...], a skill that has subsequently been lost"
Andrew S. Tanenbaum - Modern Operating Systems
sahib Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117

Win 2000 SP4+
Delphi 5 Prof.
BeitragVerfasst: Mo 18.07.05 10:43 
Danke, MrSaint - das hat geklappt.

Viele Grüße,
Christian