<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : [solved] Inplace edit bug!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [solved] Inplace edit bug!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 19:10:21 +0000</pubDate>
  <lastBuildDate>Tue, 12 Mar 2024 04:25:57 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=9742</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[[solved] Inplace edit bug! : Improvement to the code of my...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9742&amp;PID=78881&amp;title=solved-inplace-edit-bug#78881</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 9742<br /><strong>Posted:</strong> 12 March 2024 at 4:25am<br /><br /><div>Improvement to the code of my previous message:<table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp;&nbsp; m_clrText = pMetrics-&gt;clrForeground;<br><font color="#006600"><b>&nbsp;&nbsp;&nbsp; if (pMetrics-&gt;clrBackground!=static_cast&lt;COLORREF&gt;(-1)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_clrBack = pMetrics-&gt;clrBackground; <br>&nbsp;&nbsp;&nbsp; } else {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_clrBack=pControl-&gt;GetPaintManager()-&gt;m_clrControlBack;</b></font><br><b><font color="#006600">&nbsp;&nbsp;&nbsp; }</font></b></div><div><br></div><div>&nbsp;&nbsp;&nbsp; if (m_xtpBrushBack.GetSafeHandle())<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; m_xtpBrushBack.DeleteObject();</pre></td></tr></table><br><br></div>]]>
   </description>
   <pubDate>Tue, 12 Mar 2024 04:25:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9742&amp;PID=78881&amp;title=solved-inplace-edit-bug#78881</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Inplace edit bug! : I have to reopen this issue, because...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9742&amp;PID=78879&amp;title=solved-inplace-edit-bug#78879</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 9742<br /><strong>Posted:</strong> 10 March 2024 at 6:33am<br /><br /><div>I have to reopen this issue, because it still does not work as expected in v.22.1.</div><div>Suppose you have an alternate coloring in your control and an item of a row with alternate color is edited, then the (false) background color of the control is used.</div><div><br></div><div>In CXTPGridInplaceEdit::Create() we can find this code:<br><table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp;&nbsp; m_clrText = pMetrics-&gt;clrForeground;<br>&nbsp;&nbsp;&nbsp; <b><font color="#cc0000">m_clrBack = pControl-&gt;GetPaintManager()-&gt;m_clrControlBack;</font></b><br><br>&nbsp;&nbsp; &nbsp;if (m_xtpBrushBack.GetSafeHandle())<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; m_xtpBrushBack.DeleteObject();<br><br>&nbsp;&nbsp; &nbsp;m_xtpBrushBack.CreateSolidBrush(m_clrBack);</pre></td></tr></table><br>I believe it should be replaced by:<br><table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp;&nbsp; m_clrText = pMetrics-&gt;clrForeground;<br>&nbsp;&nbsp;&nbsp; <font color="#006600"><b>m_clrBack = pMetrics-&gt;clrBackground;</b></font><br><br>&nbsp;&nbsp; &nbsp;if (m_xtpBrushBack.GetSafeHandle())<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; m_xtpBrushBack.DeleteObject();<br><br>&nbsp;&nbsp; &nbsp;m_xtpBrushBack.CreateSolidBrush(m_clrBack);</pre></td></tr></table> to reflect background color changes done with alternate coloring and/or GetItemMetrics(...) callbacks. Another more flexible solution would be a Function <b><font color="#006600">CXTPGridInplaceEdit::SetBackgroundColor()</font></b> and take this, if no color changes are applied with GetItemMetrics() callbacks.<br></div>]]>
   </description>
   <pubDate>Sun, 10 Mar 2024 06:33:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9742&amp;PID=78879&amp;title=solved-inplace-edit-bug#78879</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Inplace edit bug! : Hello,I&amp;#039;m glad inform you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9742&amp;PID=76901&amp;title=solved-inplace-edit-bug#76901</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 9742<br /><strong>Posted:</strong> 23 June 2018 at 7:20am<br /><br />Hello,<br><br>I'm glad inform you that this have been already implemented in v18.4.<br><br>Added CXTPReportInplaceEdit::m_clrBack and appropriate&nbsp;m_xtpBrushBack method for&nbsp;CXTPReportInplaceEdit::CtlColor()<br><br>on creation&nbsp;CXTPReportInplaceEdit added initialization<div><br>m_clrBack = pControl-&gt;GetPaintManager()-&gt;m_clrControlBack;&nbsp;<br><br>Regards,<br>&nbsp;Oleksandr Lebed</div>]]>
   </description>
   <pubDate>Sat, 23 Jun 2018 07:20:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9742&amp;PID=76901&amp;title=solved-inplace-edit-bug#76901</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Inplace edit bug! : Hi,Thank you for bringing this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9742&amp;PID=72950&amp;title=solved-inplace-edit-bug#72950</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 9742<br /><strong>Posted:</strong> 01 December 2014 at 10:20am<br /><br />Hi,<br><br>Thank you for bringing this to our attention.  I’ve added this to our bug database. The problem will be addressed according to its priority.<br><br>Regards,<br>&nbsp;Lebed Oleksandr<br>]]>
   </description>
   <pubDate>Mon, 01 Dec 2014 10:20:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9742&amp;PID=72950&amp;title=solved-inplace-edit-bug#72950</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Inplace edit bug! : Hi;has this ever been implemented...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9742&amp;PID=72753&amp;title=solved-inplace-edit-bug#72753</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 9742<br /><strong>Posted:</strong> 07 September 2014 at 8:29am<br /><br />Hi;<br><br>has this ever been implemented into the core?<br>]]>
   </description>
   <pubDate>Sun, 07 Sep 2014 08:29:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9742&amp;PID=72753&amp;title=solved-inplace-edit-bug#72753</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Inplace edit bug! : I&amp;#039;m on fire today! :)  ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9742&amp;PID=31752&amp;title=solved-inplace-edit-bug#31752</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 9742<br /><strong>Posted:</strong> 29 February 2008 at 7:55am<br /><br />I'm on fire today! :)<DIV>&nbsp;</DIV><DIV>pItem-&gt;SetBackgroundColor(blue); // Nice...</DIV><DIV>...until you edit the item!</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/20080229_075039_wr&#111;ng_backgroun.bmp" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Default background color should be the same as the one provided in the call to SetBackgroundColor!</DIV><DIV>&nbsp;</DIV><DIV><strong>The problem lies in here!</strong></DIV><DIV>HBRUSH CXTPReportInplaceEdit::CtlColor(CDC* pDC, UINT /*nCtlColor*/)<BR>{<BR>&nbsp;&nbsp;&nbsp; pDC-&gt;SetTextColor(m_clrText); // Only text color :(</DIV><DIV>&nbsp;&nbsp;&nbsp; return GetSysColorBrush(COLOR_WINDOW);<BR>}<BR></DIV><DIV><strong>Possible solution:</strong></DIV><DIV>HBRUSH CXTPReportInplaceEdit::CtlColor(CDC* pDC, UINT /*nCtlColor*/)<BR>{<BR>&nbsp;&nbsp;&nbsp; pDC-&gt;SetTextColor(m_clrText);</DIV><DIV>&nbsp;&nbsp;&nbsp; pDC-&gt;SetBkMode(TRANSPARENT);</DIV><DIV>&nbsp;&nbsp;&nbsp; return m_bUseItemBackground ? (m_brBackground&nbsp;: GetSysColorBrush(COLOR_WINDOW));<BR>}<BR></DIV>]]>
   </description>
   <pubDate>Fri, 29 Feb 2008 07:55:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9742&amp;PID=31752&amp;title=solved-inplace-edit-bug#31752</guid>
  </item> 
 </channel>
</rss>