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



BeitragVerfasst: Mo 30.08.10 17:11 
Hallo

meine Listbox macht nicht was sie soll

onmeasureitem gibt eine Höhe vor, aber die Box gestaltet die Höhe wie sie will
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
  with (Control as TListbox).canvas do
  begin
    ....
    y:=rect.Top+3; x:=Rect.Left+5;
    rectangle (x,y,rect.right-5,rect.Bottom-3);
    ....

Rect hat in diesem Code den falschen Höhenwert. Klicke ich das item an, so scheint die Höhe anhand der Markierung zu stimmen. Das Rect ist jedoch viel kürzer.

Was läuft falsch?

Moderiert von user profile iconNarses: Code- durch Delphi-Tags ersetzt

_________________
kaum macht man was richtig, schon gehts!