<?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 : Icon Disabled Issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Icon Disabled Issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 11:34:32 +0000</pubDate>
  <lastBuildDate>Thu, 16 May 2024 05:37:41 +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=24473</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[Icon Disabled Issue : Hello,Unfortunately it is not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24473&amp;PID=78926&amp;title=icon-disabled-issue#78926</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> 24473<br /><strong>Posted:</strong> 16 May 2024 at 5:37am<br /><br />Hello,<br><br>Unfortunately it is not clear what exactly is going wrong. Can you please provide more detailed information.<br>If it cannot be re-produced in any of our sample applications provided<br>I would appreciate you sending a sample application so that we could debug it.<br><br>I've tested our RibbonSample and any problems not found.<br><br>I changed RibbonSampleView.h and RibbonSampleView.cpp files with next code:<br><br>RibbonSampleView.h<br>&nbsp;&nbsp;&nbsp; void OnSimpleButtonCommand();<br>&nbsp;&nbsp;&nbsp; void OnUpdateSimpleButton(CCmdUI* pCmdUI);<br><br>RibbonSampleView.cpp<br>replace<br>&nbsp;&nbsp;&nbsp; ON_COMMAND_RANGE(ID_BUTTONS_LARGE_SIMPLEBUTTON, ID_BUTTONS_LARGE_SPLITPOPUPBUTTON, OnEmptyCommand)<br>with<br>&nbsp;&nbsp;&nbsp; ON_COMMAND_RANGE(ID_BUTTONS_LARGE_POPUPBUTTON, ID_BUTTONS_LARGE_SPLITPOPUPBUTTON, OnEmptyCommand)<br><br>add this lines:<br>&nbsp;&nbsp;&nbsp; ON_UPDATE_COMMAND_UI(ID_BUTTONS_LARGE_SIMPLEBUTTON, OnUpdateSimpleButton)<br><br>void CRibbonSampleView::OnUpdateSimpleButton(CCmdUI* pCmdUI)<br>{<br>&nbsp;&nbsp;&nbsp; pCmdUI-&gt;Enable(m_bToggleButton);<br>}<br><br>And result I attach in screenshot.<br><br>Regards,<br>Artem Gontarenko<br><img src="uploads/9012/1_2024-05-16_05-37-37.png" height="373" width="1438" border="0" /><br><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 16 May 2024 05:37:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24473&amp;PID=78926&amp;title=icon-disabled-issue#78926</guid>
  </item> 
  <item>
   <title><![CDATA[Icon Disabled Issue : Hi,I&amp;#039;m encountering some...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24473&amp;PID=78907&amp;title=icon-disabled-issue#78907</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9656">pmessdev</a><br /><strong>Subject:</strong> 24473<br /><strong>Posted:</strong> 02 May 2024 at 1:36pm<br /><br /><div>Hi,</div><div><br></div><div>I'm encountering some issues trying to disable buttons in the ribbon.&nbsp;</div><div>The result I'm getting is that the text beneath the icon appears to be disabled,&nbsp;</div><div>but the icon itself doesn't gray out. We also tried using a disabled icon, but it didn't work.</div><div><br></div><div>Additionally, we tried with the two simplified functions below.</div><div><br></div><div>With the first one, we get the aforementioned result, while with the call below,&nbsp;</div><div>the same thing happens, but additionally, when hovering over it, the highlight color flickers.</div><div><br></div><div><br></div><div>void AClass::DisableButton(CCmdUI* pCmdUI)</div><div>{</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>pCmdUI-&gt;Enable(FALSE);</span></div><div>}</div><div><br></div><div><br></div><div>void AClass::DisableButton(CCmdUI* pCmdUI)</div><div>{</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>CXTPControl* pControl = CXTPControl::FromUI(pCmdUI);</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>pControl-&gt;SetEnabled(FALSE);</span></div><div>}</div><div><br></div><div>Thanks in advance for your help!</div><div><br></div><div>PM</div>]]>
   </description>
   <pubDate>Thu, 02 May 2024 13:36:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24473&amp;PID=78907&amp;title=icon-disabled-issue#78907</guid>
  </item> 
 </channel>
</rss>