<?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 : BUG in deprecated xtpGridItemHas* values</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : BUG in deprecated xtpGridItemHas* values]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 22 May 2026 20:05:06 +0000</pubDate>
  <lastBuildDate>Fri, 05 Apr 2024 04:37:51 +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=24470</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[BUG in deprecated xtpGridItemHas* values : Bug in In v19 we had:enum XTPPropertyGridItemFlags{...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24470&amp;PID=78894&amp;title=bug-in-deprecated-xtpgriditemhas-values#78894</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3235">MartinT</a><br /><strong>Subject:</strong> 24470<br /><strong>Posted:</strong> 05 April 2024 at 4:37am<br /><br /><div>Bug in &#091;Source\PropertyGrid\XTPPropertyGridItem.h&#093;<br></div><div><br></div><div>In v19 we had:</div><div><br></div><div><font face="Courier New, Courier, mono">enum XTPPropertyGridItemFlags<br>{<br>&nbsp;&nbsp; &nbsp;xtpGridItemHasEdit&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; = 1, // Item has an edit control.<br>&nbsp;&nbsp; &nbsp;xtpGridItemHasExpandButton = 2, // Item has an expand button.<br>&nbsp;&nbsp; &nbsp;xtpGridItemHasComboButton&nbsp; = 4&nbsp; // Item has a combo button.<br>};<br></font></div><div><br></div><div>In v22 was introduced:</div><div><br></div><div><font face="Courier New, Courier, mono">enum XTPPropertyGridItemFlags<br>{<br>&nbsp;&nbsp; &nbsp;xtp<b>Property</b>GridItemHasEdit&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; = 1, // Item has an edit control.<br>&nbsp;&nbsp; &nbsp;xtp<b>Property</b>GridItemHasExpandButton = 2, // Item has an expand button.<br>&nbsp;&nbsp; &nbsp;xtp<b>Property</b>GridItemHasComboButton&nbsp; = 4&nbsp; // Item has a combo button.<br>};<br><br>//{{AFX_CODEJOCK_PRIVATE<br>_XTP_DEPRECATED_IN_FAVOR(xtp<font color="#00cc33">Property</font>GridItemHasEdit)<br>const XTPPropertyGridItemFlags xtpGridItemHasEdit = xtp<font color="#00cc33">Property</font>GridItemHasEdit;<br><br>_XTP_DEPRECATED_IN_FAVOR(<font color="#ff0000">xtpGridItemHasExpandButton</font>) *same; no "..Property.."*<br>const XTPPropertyGridItemFlags <font color="#ff0000">xtpGridItemHasExpandButton </font>= <font color="#ff0000">xtpGridItemHasExpandButton</font>;<br><br>_XTP_DEPRECATED_IN_FAVOR(<font color="#ff0000">xtpGridItemHasComboButton</font>)<br>const XTPPropertyGridItemFlags <font color="#ff0000">xtpGridItemHasComboButton </font>= <font color="#ff0000">xtpGridItemHasComboButton</font>;<br>//}}AFX_CODEJOCK_PRIVATE<br></font></div><div><br></div><div>As you can see, the Values 2 and 4 had their deprecated entries mixed up and get self-assigned resulting in 0 as values for the old constant names!</div><div><br></div>]]>
   </description>
   <pubDate>Fri, 05 Apr 2024 04:37:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24470&amp;PID=78894&amp;title=bug-in-deprecated-xtpgriditemhas-values#78894</guid>
  </item> 
 </channel>
</rss>