Autor Beitrag
JoelH
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 806
Erhaltene Danke: 17

Win10
Delphi Alexandria 11.2 Patch 1
BeitragVerfasst: Mi 14.04.04 13:51 
....rufen wird.
Ich würd ne Checklistbox gerne zeilenweise einfärben. Dieses Script
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure Tfrm_tree_status.clb_mandantenDrawItem(Control: TWinControl;
  Index: Integer; Rect: TRect; State: TOwnerDrawState);
begin
  if mandanten[Index] then
    clb_mandanten.Canvas.Brush.Color := clRed
  else
    clb_mandanten.Canvas.Brush.Color := clGreen;
  clb_mandanten.Canvas.FillRect(Rect);
end;

Sollte dies ja auch erledigen, leider kann ich es nicht testen weil das Programm diese procedure nie aufruft :( Was muss ich mit dem Ding anstellen das er den Event aufruft ?

_________________
mfg. Joel
JoelH Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 806
Erhaltene Danke: 17

Win10
Delphi Alexandria 11.2 Patch 1
BeitragVerfasst: Mi 14.04.04 14:12 
Titel: hmm,
Krise. c

Hat sich erledigt. Der Style muss einfach auf lbOwnerDrawFixed stehen oder wie? Warum tut es lbStandard nicht auch?

_________________
mfg. Joel