<?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: DropDown button in constraint edit wrong</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : BUG: DropDown button in constraint edit wrong]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 03 Apr 2026 22:41:13 +0000</pubDate>
  <lastBuildDate>Tue, 06 Oct 2020 14:37:47 +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=23353</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: DropDown button in constraint edit wrong : Hi;I just tested this with Toolkit...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23353&amp;PID=77895&amp;title=bug-dropdown-button-in-constraint-edit-wrong#77895</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 23353<br /><strong>Posted:</strong> 06 October 2020 at 2:37pm<br /><br /><div>Hi;</div><div><br></div><div>I just tested this with Toolkit 19.2 and 19.3.</div><div>IT'S STILL THERE!!!</div><div>When can we expect a fix for this.</div><div>Here's another screenshot from our application:</div><div><br></div><div><img src="uploads/109/06-10-_2020_20-32-28.png" height="431" width="740" border="0" /><br></div>]]>
   </description>
   <pubDate>Tue, 06 Oct 2020 14:37:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23353&amp;PID=77895&amp;title=bug-dropdown-button-in-constraint-edit-wrong#77895</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: DropDown button in constraint edit wrong : Hello;I can reproduce the bug...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23353&amp;PID=75857&amp;title=bug-dropdown-button-in-constraint-edit-wrong#75857</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 23353<br /><strong>Posted:</strong> 02 June 2017 at 2:36am<br /><br />Hello;<br><br>I can reproduce the bug using your report sample -&gt; Quality assurace -&gt; ComboBox<br>Turn on skinning (View &gt; Skin Framework &gt; Office 2010) then go to Report Control &gt; Quality Assurance ComboBox. Don't turn on "Show non-active inplace buttons"!<br>Resize the first column that its almost the same size as the text itself. Now click into the item and voilá you see the transparent button overlapping the text and artefacts on the right side of the item area.<br><br>&nbsp; <br>]]>
   </description>
   <pubDate>Fri, 02 Jun 2017 02:36:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23353&amp;PID=75857&amp;title=bug-dropdown-button-in-constraint-edit-wrong#75857</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: DropDown button in constraint edit wrong : Hi;I made a few more tests and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23353&amp;PID=75855&amp;title=bug-dropdown-button-in-constraint-edit-wrong#75855</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 23353<br /><strong>Posted:</strong> 02 June 2017 at 1:51am<br /><br />Hi;<br><br>I made a few more tests and after removing skinning from the application<br><br><table width="99%"><tr><td><pre class="BBcode">&nbsp; std::wstring StylesPath=GetModuleDirectory();<br>&nbsp; StylesPath.append(L"Styles\\Office2010.cjstyles");<br><br>&nbsp; if (XTPSkinManager()-&gt;LoadSkin(StylesPath.c_str(), L"NormalBlack.ini"))<br>&nbsp;&nbsp;&nbsp; XTPSkinManager()-&gt;SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyColors | xtpSkinApplyMetrics | xtpSkinApplyMenus);</pre></td></tr></table><br><br>the old combo button appeared. So it's a skinning related bug!<br>The combination of skinning and AddComboButton(<b>Inside=TRUE</b>) leads to the drawing problem!<br>Setting the parameter to FALSE has no effect in my case, because its the last column of the control and therefore the button is still drawn inside the item area.<br><br>But now I have another problem!<br><br>As soon as I click onto the combo button the edit part of the item disappears (is cleared)! Why?<br>Here's a screenshot of this unwanted behaviour:<br><br><img src="http://forum.codejock.com/uploads/109/C&#111;nstraintEdit1.png" height="233" width="149" border="0" /><br><br>When I then select an item in the list the list is closed but the item stays empty. When I then change the selection to another record, the text of the new selected item is drawn. Strange!<br><br>Therefore I need a fix for two problems:<br><ol><li>Button behaviour when skinning is enabled.</li><li>Cleareditem text part when combo button is pressed.</li></ol><p>TIA<br></p>]]>
   </description>
   <pubDate>Fri, 02 Jun 2017 01:51:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23353&amp;PID=75855&amp;title=bug-dropdown-button-in-constraint-edit-wrong#75855</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: DropDown button in constraint edit wrong : The app is skinned using Office...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23353&amp;PID=75854&amp;title=bug-dropdown-button-in-constraint-edit-wrong#75854</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 23353<br /><strong>Posted:</strong> 02 June 2017 at 1:23am<br /><br />The app is skinned using Office 2010 black style! Perhaps thats the reason...<br><br>Here is the code how I  initialize the control within the OnInitDialog() function:<br><br><table width="99%"><tr><td><pre class="BBcode">&nbsp; SetTheme(xtpReportThemeResource);<br>&nbsp; GetToolTipContext()-&gt;SetStyle(xtpToolTipResource);<br>&nbsp; SetImageList(&amp;Images_);<br><br>&nbsp; SetGridStyle(FALSE, xtpReportGridNoLines);<br>&nbsp; SetGridStyle(TRUE, xtpReportGridNoLines);<br><br>&nbsp; AllowEdit(TRUE);<br>&nbsp; SetMultipleSelection(FALSE);<br><br>&nbsp; GetReportHeader()-&gt;SetAutoColumnSizing(FALSE);<br>&nbsp; GetReportHeader()-&gt;AllowColumnRemove(FALSE);<br>&nbsp; GetReportHeader()-&gt;AllowColumnReorder(FALSE);</pre></td></tr></table><br><br>I do NOTHING special and the item itself is a CXTPReportRecordItemText() instance.<br><br>I can reproduce it in any column of other report controls too. The button seems transparent. <br>]]>
   </description>
   <pubDate>Fri, 02 Jun 2017 01:23:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23353&amp;PID=75854&amp;title=bug-dropdown-button-in-constraint-edit-wrong#75854</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: DropDown button in constraint edit wrong : Hello Martin,I can&amp;#039;t understand...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23353&amp;PID=75850&amp;title=bug-dropdown-button-in-constraint-edit-wrong#75850</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23353<br /><strong>Posted:</strong> 01 June 2017 at 12:30pm<br /><br />Hello Martin,<br><br>I can't understand how you get such &nbsp;drop down button.<br>I can get only old-style &nbsp;button.]]>
   </description>
   <pubDate>Thu, 01 Jun 2017 12:30:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23353&amp;PID=75850&amp;title=bug-dropdown-button-in-constraint-edit-wrong#75850</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: DropDown button in constraint edit wrong : Hi;Take a look at the attached...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23353&amp;PID=75846&amp;title=bug-dropdown-button-in-constraint-edit-wrong#75846</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 23353<br /><strong>Posted:</strong> 01 June 2017 at 11:01am<br /><br />Hi;<br><br>Take a look at the attached screenshot!<br>The drop down button is overlapped by the edit (text) part of the item when in edit mode:<br><br><img src="uploads/109/C&#111;nstraintEdit.png" height="106" width="112" border="0" /><br><br>The real value for the selected item is 0,1 (German 0.1). <br><br>I create the column in this way:<br>&nbsp;<table width="99%"><tr><td><pre class="BBcode"><br>&nbsp; TheColumn=AddColumn(new CXTPReportColumn(Column++, L"Sample Rate", 75, TRUE, XTP_REPORT_NOICON, TRUE, TRUE));&nbsp;&nbsp;&nbsp; <br>&nbsp; TheColumn-&gt;SetHeaderAlignment(xtpColumnTextRight);<br>&nbsp; TheColumn-&gt;SetAlignment(xtpColumnTextRight);<br><br>&nbsp; TheColumn-&gt;GetEditOptions()-&gt;m_bConstraintEdit=TRUE;<br>&nbsp; TheColumn-&gt;GetEditOptions()-&gt;AddComboButton(TRUE);<br><br>&nbsp; std::wostringstream oss;<br>&nbsp; for (size_t i=0; i&lt;sizeof(ValidSampleRates)/sizeof(ValidSampleRates&#091;0&#093;); i++) {<br>&nbsp;&nbsp;&nbsp; oss.str(L"");&nbsp; <br>&nbsp;&nbsp;&nbsp; oss &lt;&lt; std::setprecision(ValidSampleRates<em>&lt;1?1:0) &lt;&lt; std::fixed &lt;&lt; ValidSampleRates<em>;<br>&nbsp;&nbsp;&nbsp; TheColumn-&gt;GetEditOptions()-&gt;AddConstraint(oss.str().c_str(), i);<br>&nbsp; }<br></pre></td></tr></table><br>The item itself is a CXTPReportRecordItemText instance with the string set to the shown value of 0,1.<br><br>Is it a problem of the alignment?<br><br>I'm using in this case v17.3 in VS2008.<br><br>Any help is welcome!<br><br><br></em></em>]]>
   </description>
   <pubDate>Thu, 01 Jun 2017 11:01:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23353&amp;PID=75846&amp;title=bug-dropdown-button-in-constraint-edit-wrong#75846</guid>
  </item> 
 </channel>
</rss>