<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Fehlerhafte anzeige bei TDBGrid und DrawColumnCell]]></title><description><![CDATA[<p>Hallo, ich habe eine DrawColumnCell Funktion, die mir bestimmte Zeilen mit einer anderen Farbe anmalen soll:</p>
<pre><code>//  EventList ******************************************************************
void __fastcall TfKalender::EventListDrawColumnCell(TObject *Sender, const TRect &amp;Rect, int DataCol, TColumn *Column, TGridDrawState State)
{
  // Zeilen vom aktuellen Tag gleich anmalen
        TDateTime date1;
        TDateTime date2(AnsiString(day) + &quot;.&quot; +  AnsiString(month) + &quot;.&quot; + AnsiString(year), TDateTime::Date);
        date1=dsKalender-&gt;DataSet-&gt;FieldByName(&quot;DATUM0&quot;)-&gt;AsDateTime;
        if (date2==date1) {
          EventList-&gt;Canvas-&gt;Brush-&gt;Color = clGradientActiveCaption;
      }
  EventList-&gt;Canvas-&gt;FillRect(Rect);
  EventList-&gt;DefaultDrawColumnCell(Rect,DataCol,Column,State);
}
</code></pre>
<p>Die Markierungen sind auch richtig programmiert, aber leider muss man das Programmfenster erst minimieren und wieder maximieren um die Änderungen zu sehen (es scheint wohl ein repaint oder so zu fehlen). hat jemand eine idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/201380/fehlerhafte-anzeige-bei-tdbgrid-und-drawcolumncell</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 02:40:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/201380.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 29 Dec 2007 11:25:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehlerhafte anzeige bei TDBGrid und DrawColumnCell on Sat, 29 Dec 2007 11:25:05 GMT]]></title><description><![CDATA[<p>Hallo, ich habe eine DrawColumnCell Funktion, die mir bestimmte Zeilen mit einer anderen Farbe anmalen soll:</p>
<pre><code>//  EventList ******************************************************************
void __fastcall TfKalender::EventListDrawColumnCell(TObject *Sender, const TRect &amp;Rect, int DataCol, TColumn *Column, TGridDrawState State)
{
  // Zeilen vom aktuellen Tag gleich anmalen
        TDateTime date1;
        TDateTime date2(AnsiString(day) + &quot;.&quot; +  AnsiString(month) + &quot;.&quot; + AnsiString(year), TDateTime::Date);
        date1=dsKalender-&gt;DataSet-&gt;FieldByName(&quot;DATUM0&quot;)-&gt;AsDateTime;
        if (date2==date1) {
          EventList-&gt;Canvas-&gt;Brush-&gt;Color = clGradientActiveCaption;
      }
  EventList-&gt;Canvas-&gt;FillRect(Rect);
  EventList-&gt;DefaultDrawColumnCell(Rect,DataCol,Column,State);
}
</code></pre>
<p>Die Markierungen sind auch richtig programmiert, aber leider muss man das Programmfenster erst minimieren und wieder maximieren um die Änderungen zu sehen (es scheint wohl ein repaint oder so zu fehlen). hat jemand eine idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1427550</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1427550</guid><dc:creator><![CDATA[funsi]]></dc:creator><pubDate>Sat, 29 Dec 2007 11:25:05 GMT</pubDate></item></channel></rss>