Autor Beitrag
Wollaston
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27



BeitragVerfasst: Fr 18.11.05 14:38 
Moin,

ich will an der Position einer TreeNode eine ComboBox anzeigen. Leider gibt es keine Funktion die die Pixel-Position der TreeNode zurück gibt. Ich habe es schon mit einer Rastersuche über GetNodeAt versucht, aber diese Funktion scheint unabhängig von der X-Koordinate zu funktionieren.
Somit erhalte ich nur die Y-Koordinate und stehe immer noch ratlos dar. Wäre klasse wenn jemand eine Lösung hätte.

Schon mal danke für Eure Mühen.


Mfg Wollaston
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Fr 18.11.05 15:23 
Hallo,

hab das Stichwort markiert :wink:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
var rect : TRect;
begin
 rect := TreeView1.Selected.DisplayRect(True);
 ComboBox1.Left := rect.Left+TreeView1.Left;
 ComboBox1.Top := rect.Top+TreeView1.Top+1;

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Wollaston Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27



BeitragVerfasst: Fr 18.11.05 16:16 
Hallo Lannes,

schon mal vielen Dank. Hab hier im Moment kein Delphi zur Hand werd es aber sobald wie möglich ausprobieren.

MfG

Wollaston