<?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[DBCheckBox im DBGrid]]></title><description><![CDATA[<p>Hallo auf folgender Seite habe ich einen Delphi-Code gefunden, der anstelle des &quot;Wahr&quot; / &quot;Falsch&quot; in einem Boolean-Feld eine DBCheckBox platziert und somit die Stelle klickbar macht.</p>
<p>Link: <a href="http://delphi.about.com/od/usedbvcl/l/aa082003a.htm" rel="nofollow">http://delphi.about.com/od/usedbvcl/l/aa082003a.htm</a></p>
<p>Ich habe auch einen Thread hier im Forum entdeckt, wo auch Code gepostet wurde, jedoch funktioniert der Code auch bei mir nicht.</p>
<p>Link: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-12215-and-highlight-is-%2Adbgrid%2A+%2Acheck%2A.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-12215-and-highlight-is-%2Adbgrid%2A+%2Acheck%2A.html</a></p>
<p>kann mir beim Umsetzen des oberen beispiels jemand mal so zwei drei tipps geben?</p>
<p>1. bei der deklaration der const variablen verstehe ich nicht, wie diese dann in c++ aussehen müsste:</p>
<pre><code>const IsChecked : array[Boolean] of Integer = (DFCS_BUTTONCHECK, DFCS_BUTTONCHECK or DFCS_CHECKED);
</code></pre>
<p>2. bei InfalteRect(...) mault er in C++ rum, dass er eine Struktur vom Typ tagRect haben möchte:</p>
<pre><code>InflateRect(DrawRect,-1,-1);
</code></pre>
<p>3. und die DrawFrameControl(...) erfüllt durch 2. auch nicht ihren Dienst, da ebenfalls tagRect verlangt würde:</p>
<pre><code>DrawFrameControl(DBGrid1.Canvas.Handle, DrawRect, DFC_BUTTON, DrawState);
</code></pre>
<p>Vielen Dank im Vorraus, oder kennt jemand ein C++ tutorial wo es gezeigt wird? ich finde da leider nichts.</p>
<p>gruß gerd</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/113713/dbcheckbox-im-dbgrid</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 09:30:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/113713.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Jun 2005 08:26:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DBCheckBox im DBGrid on Sun, 26 Jun 2005 08:26:34 GMT]]></title><description><![CDATA[<p>Hallo auf folgender Seite habe ich einen Delphi-Code gefunden, der anstelle des &quot;Wahr&quot; / &quot;Falsch&quot; in einem Boolean-Feld eine DBCheckBox platziert und somit die Stelle klickbar macht.</p>
<p>Link: <a href="http://delphi.about.com/od/usedbvcl/l/aa082003a.htm" rel="nofollow">http://delphi.about.com/od/usedbvcl/l/aa082003a.htm</a></p>
<p>Ich habe auch einen Thread hier im Forum entdeckt, wo auch Code gepostet wurde, jedoch funktioniert der Code auch bei mir nicht.</p>
<p>Link: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-12215-and-highlight-is-%2Adbgrid%2A+%2Acheck%2A.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-12215-and-highlight-is-%2Adbgrid%2A+%2Acheck%2A.html</a></p>
<p>kann mir beim Umsetzen des oberen beispiels jemand mal so zwei drei tipps geben?</p>
<p>1. bei der deklaration der const variablen verstehe ich nicht, wie diese dann in c++ aussehen müsste:</p>
<pre><code>const IsChecked : array[Boolean] of Integer = (DFCS_BUTTONCHECK, DFCS_BUTTONCHECK or DFCS_CHECKED);
</code></pre>
<p>2. bei InfalteRect(...) mault er in C++ rum, dass er eine Struktur vom Typ tagRect haben möchte:</p>
<pre><code>InflateRect(DrawRect,-1,-1);
</code></pre>
<p>3. und die DrawFrameControl(...) erfüllt durch 2. auch nicht ihren Dienst, da ebenfalls tagRect verlangt würde:</p>
<pre><code>DrawFrameControl(DBGrid1.Canvas.Handle, DrawRect, DFC_BUTTON, DrawState);
</code></pre>
<p>Vielen Dank im Vorraus, oder kennt jemand ein C++ tutorial wo es gezeigt wird? ich finde da leider nichts.</p>
<p>gruß gerd</p>
]]></description><link>https://www.c-plusplus.net/forum/post/817325</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/817325</guid><dc:creator><![CDATA[gerd01]]></dc:creator><pubDate>Sun, 26 Jun 2005 08:26:34 GMT</pubDate></item><item><title><![CDATA[Reply to DBCheckBox im DBGrid on Sun, 26 Jun 2005 09:35:53 GMT]]></title><description><![CDATA[<p>Nachfragen zu einem Lösungsansatz bitte immer im Originalthread!<br />
Und bzgl. deiner Fragen sieh dir einfach das Beispiel von J.Blazek nochmal genau an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/817361</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/817361</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Sun, 26 Jun 2005 09:35:53 GMT</pubDate></item></channel></rss>