Autor Beitrag
Flash106
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 234


D7 Ent
BeitragVerfasst: Mi 24.08.05 16:12 
Hallo,

eigentlich ist das Farbig machen bestimmter Zeilen eines Grids ja kein Problem.. aber ich HAB schon wieder ein problem :( . Der Text in der Celle ist weg, nachdem ichs farbig gemacht habe:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
...
procedure TForm1.CustomCalandarDrawCell(Sender: TObject; ACol, ARow: Integer;
  Rect: TRect; State: TGridDrawState);
begin
    if arrTermine[ARow,ACol] = 'T' then
    begin
      CustomCalandar.Canvas.Brush.Color := clRed;
      CustomCalandar.Canvas.FillRect(Rect);
    end;
end;
...


Soll mal ne kalender kompo werden also nicht wundern... Was hab ich denn falsch gemacht?
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Mi 24.08.05 19:25 
logisch wird kein Text ausgegeben, da ihn nie zeichnest. (z.B. mit textout oder drawtext). eindfach auch mal die Forensuche zu Suche in: Delphi-Forum, Delphi-Library DRAWCELL anwerfen

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Do 01.09.05 15:16 
Schau dir mal die Delphi-Hilfe zu TextOut und TextRect an. Eins von beiden solltest du noch bei dir für die Textausgabe einbauen.
Wenn du mit der OH nicht weiter kommst, kannst du ja nochmal posten.