<?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 : Update-handler for gallery-items?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Update-handler for gallery-items?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 04:36:15 +0000</pubDate>
  <lastBuildDate>Thu, 07 May 2009 06:15:00 +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=13920</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[Update-handler for gallery-items? : I hope you realize this is indeed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=48741&amp;title=updatehandler-for-galleryitems#48741</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13920<br /><strong>Posted:</strong> 07 May 2009 at 6:15am<br /><br />I hope you realize this is indeed a flaw in the gallery code. Any improvements planned for 13.1?]]>
   </description>
   <pubDate>Thu, 07 May 2009 06:15:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=48741&amp;title=updatehandler-for-galleryitems#48741</guid>
  </item> 
  <item>
   <title><![CDATA[Update-handler for gallery-items? : This is still a problem :(. Any...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=48285&amp;title=updatehandler-for-galleryitems#48285</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13920<br /><strong>Posted:</strong> 23 April 2009 at 5:58pm<br /><br />This is still a problem :(. Any disabled items are clickable since CXTPGallery does NOT handle such states in OnClick()!<DIV>&nbsp;</DIV><DIV>What should I do to <U>disable clicking</U> on certain items?! The items are drawn correctly...</DIV>]]>
   </description>
   <pubDate>Thu, 23 Apr 2009 17:58:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=48285&amp;title=updatehandler-for-galleryitems#48285</guid>
  </item> 
  <item>
   <title><![CDATA[Update-handler for gallery-items? : I see it, but it&amp;#039;s disabled...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47853&amp;title=updatehandler-for-galleryitems#47853</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13920<br /><strong>Posted:</strong> 14 April 2009 at 4:29am<br /><br />I see it, but it's disabled (grayed out). Then when I click it, the command-handler is fired! The click should be eaten in this case! :(]]>
   </description>
   <pubDate>Tue, 14 Apr 2009 04:29:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47853&amp;title=updatehandler-for-galleryitems#47853</guid>
  </item> 
  <item>
   <title><![CDATA[Update-handler for gallery-items? :  You can click it but visually...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47743&amp;title=updatehandler-for-galleryitems#47743</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13920<br /><strong>Posted:</strong> 10 April 2009 at 1:25am<br /><br /><DIV>&nbsp;</DIV><DIV>You can click it but visually you don't see it ?</DIV>]]>
   </description>
   <pubDate>Fri, 10 Apr 2009 01:25:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47743&amp;title=updatehandler-for-galleryitems#47743</guid>
  </item> 
  <item>
   <title><![CDATA[Update-handler for gallery-items? : Sorry, but that doesn&amp;#039;t work...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47731&amp;title=updatehandler-for-galleryitems#47731</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13920<br /><strong>Posted:</strong> 09 April 2009 at 5:28pm<br /><br /><P>Sorry, but that doesn't work either...</P><DIV>bPressed &amp;= IsEnabled();</DIV><DIV>&nbsp;</DIV><DIV>The click is handled in the parent class, so I can click the item even if it's disabled/unpressed or whatever... This is definitely a bug in the parent class!</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Next idea? :P</DIV>]]>
   </description>
   <pubDate>Thu, 09 Apr 2009 17:28:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47731&amp;title=updatehandler-for-galleryitems#47731</guid>
  </item> 
  <item>
   <title><![CDATA[Update-handler for gallery-items? : Of course :P. Thanks! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47652&amp;title=updatehandler-for-galleryitems#47652</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13920<br /><strong>Posted:</strong> 07 April 2009 at 9:57am<br /><br /><P>Of course :P. Thanks!</P>]]>
   </description>
   <pubDate>Tue, 07 Apr 2009 09:57:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47652&amp;title=updatehandler-for-galleryitems#47652</guid>
  </item> 
  <item>
   <title><![CDATA[Update-handler for gallery-items? : Hi,  in same Draw method you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47630&amp;title=updatehandler-for-galleryitems#47630</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13920<br /><strong>Posted:</strong> 07 April 2009 at 1:22am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>in same Draw method you can set bPressed to False if IsEnabled() is false.</DIV>]]>
   </description>
   <pubDate>Tue, 07 Apr 2009 01:22:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47630&amp;title=updatehandler-for-galleryitems#47630</guid>
  </item> 
  <item>
   <title><![CDATA[Update-handler for gallery-items? : Actually, this doesn&amp;#039;t solve...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47620&amp;title=updatehandler-for-galleryitems#47620</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13920<br /><strong>Posted:</strong> 06 April 2009 at 3:25pm<br /><br />Actually, this doesn't solve it completely. The item is still clickable...<DIV>&nbsp;</DIV><DIV>This is due to CXTPControlGallery::OnClick() where there is only a check for the enable-state of the gallery itself:</DIV><DIV>if (!GetEnabled())<BR>&nbsp;&nbsp;&nbsp; return;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Any ideas?</DIV>]]>
   </description>
   <pubDate>Mon, 06 Apr 2009 15:25:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47620&amp;title=updatehandler-for-galleryitems#47620</guid>
  </item> 
  <item>
   <title><![CDATA[Update-handler for gallery-items? : I solved it!   void CControlGalleryItem::Draw(CDC*...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47570&amp;title=updatehandler-for-galleryitems#47570</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13920<br /><strong>Posted:</strong> 04 April 2009 at 7:34am<br /><br />I solved it! <DIV>&nbsp;</DIV><DIV>void CControlGalleryItem::Draw(CDC* pDC, CXTPControlGallery* pGallery, CRect rcItem,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL bEnabled, BOOL bSelected, BOOL bPressed, BOOL bChecked)<BR>{<BR>&nbsp;&nbsp;&nbsp; CXTPControlGalleryItem::Draw(pDC, pGallery, rcItem, bEnabled &amp;&amp; IsEnabled(), bSelected, bPressed, bChecked);<BR>}</DIV><DIV>&nbsp;</DIV><DIV>Then I call SetEnabled() in my gallery-update-handler! <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Sat, 04 Apr 2009 07:34:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47570&amp;title=updatehandler-for-galleryitems#47570</guid>
  </item> 
  <item>
   <title><![CDATA[Update-handler for gallery-items? : XTP 13.0.0. I&amp;#039;m trying to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47569&amp;title=updatehandler-for-galleryitems#47569</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13920<br /><strong>Posted:</strong> 04 April 2009 at 7:16am<br /><br />XTP 13.0.0.<DIV>I'm trying to enable/disable certain gallery items in an update-handler. I can't get it working.</DIV><DIV>&nbsp;</DIV><DIV>ON_UPDATE_COMMAND_UI_RANGE(ID_ITEM1, ID_ITEM10, OnUpdateGalleryItems) // Never called!</DIV><DIV>&nbsp;</DIV><DIV>Can it be done? So far I have only been able to enable/disable the whole gallery... :(</DIV><DIV>&nbsp;</DIV><DIV>Thanks.</DIV>]]>
   </description>
   <pubDate>Sat, 04 Apr 2009 07:16:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13920&amp;PID=47569&amp;title=updatehandler-for-galleryitems#47569</guid>
  </item> 
 </channel>
</rss>