<?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 : Setting Disabled Ic&#111;n during run time</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Setting Disabled Ic&#111;n during run time]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 05:13:14 +0000</pubDate>
  <lastBuildDate>Mon, 19 Apr 2004 09:22:19 +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=610</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[Setting Disabled Ic&#111;n during run time : i &amp;#034;did&amp;#034; but only because...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1664&amp;title=setting-disabled-icon-during-run-time#1664</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=427">blockwood</a><br /><strong>Subject:</strong> 610<br /><strong>Posted:</strong> 19 April 2004 at 9:22am<br /><br />i "did" but only because i didn't realize codejock had integral disabled icon functionality built in.<br /><br />with this i'm not sure why anybody would want to create their own disabled icon.<br /><br />i still am not a big fan of the ImageManager - and I disagree that even with disabled icons it is "easier" when you factor in you have to manually edit each bitmap, loading images in ImageManager is cumbersome (I can select 100 bitmaps at a time and load them into ImageControl all at once) etc.<br /><br />but the critical point is that it can be done easily with imagecontrol and that codejock will create disable icons on it's own - i think it's an incredible feature]]>
   </description>
   <pubDate>Mon, 19 Apr 2004 09:22:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1664&amp;title=setting-disabled-icon-during-run-time#1664</guid>
  </item> 
  <item>
   <title><![CDATA[Setting Disabled Ic&#111;n during run time : I thought you wanted to use your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1662&amp;title=setting-disabled-icon-during-run-time#1662</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 610<br /><strong>Posted:</strong> 19 April 2004 at 9:07am<br /><br />I thought you wanted to use your own "custom" disabled icon.&nbsp; Thatis why i suggested to use the ImageManager control, it makes it wasy toadd your own disabled icon.]]>
   </description>
   <pubDate>Mon, 19 Apr 2004 09:07:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1662&amp;title=setting-disabled-icon-during-run-time#1662</guid>
  </item> 
  <item>
   <title><![CDATA[Setting Disabled Ic&#111;n during run time : actually i have found out a better...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1661&amp;title=setting-disabled-icon-during-run-time#1661</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=427">blockwood</a><br /><strong>Subject:</strong> 610<br /><strong>Posted:</strong> 19 April 2004 at 8:52am<br /><br />actually i have found out a better solution.  <br /><br />first - I made an assumption that was erroneous.  I figured codejock could not automatically change image to disabled colors by itself!  codejock can - how I don't know.  but it's a great feature.<br /><br />I *assumed* you needed to create a disabled icon and handle it programmatically - nope - cojejock does this for you.<br /><br />the problem is - if you set theme after loading toolbar this neat disabled effect is lost and the image is just blocked out.<br /><br />to get it back just add <br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Options.UseDisabledIcons = True<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .RecalcLayout<br /><br />each time you set the theme<br /><br />so my code looks like this<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;With CommandBars<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .VisualTheme = Id<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Options.UseDisabledIcons = True<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .RecalcLayout<br />&nbsp;&nbsp;&nbsp;&nbsp;End With<br /><br />you no longer need to worry about creating custom disabled icons or managing it programmatically.  just disable and enable buttons and codejock will do the rest.]]>
   </description>
   <pubDate>Mon, 19 Apr 2004 08:52:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1661&amp;title=setting-disabled-icon-during-run-time#1661</guid>
  </item> 
  <item>
   <title><![CDATA[Setting Disabled Ic&#111;n during run time : All you need to do is change the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1657&amp;title=setting-disabled-icon-during-run-time#1657</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 610<br /><strong>Posted:</strong> 18 April 2004 at 12:35pm<br /><br />All you need to do is change the "grey" background of the image to the"Erase" color when you are adding them to the ImageManagercontrol.&nbsp; Just select the "fill tool" and click on the "Erase"color and change the "grey" to "erase".&nbsp; This might sound likeallot, but it take less than a minute to do each image.&nbsp; If you areusing Alpha icons, then the transparency layer will be used by theImageManager control and you will not need to use the "Erase" color.<span style="font-size:10px"><br /><br />Edited by SuperMario</span>]]>
   </description>
   <pubDate>Sun, 18 Apr 2004 12:35:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1657&amp;title=setting-disabled-icon-during-run-time#1657</guid>
  </item> 
  <item>
   <title><![CDATA[Setting Disabled Ic&#111;n during run time : i don&amp;#039;t necessarily agree...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1656&amp;title=setting-disabled-icon-during-run-time#1656</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=427">blockwood</a><br /><strong>Subject:</strong> 610<br /><strong>Posted:</strong> 18 April 2004 at 11:22am<br /><br />i don't necessarily agree that it is easier to use, in all cases, because it doesn't support mask edit color - so we would have to rework all of our bitmaps or convert them to gifs.  a lot of work to get disabled icons to work.<br /><br />I appreciate the new ImageManager control and that it abstracts the problem of disabled icons (it will be a great help to people) but for people who have existing apps. designed around imagecontrol - switching to ImageManager is no small task.<br /><br />If there are any suggestions as to how I can convert my existing bitmaps with grey background (used as mask color) to the required ImageManager format I am all ears.  We have nearly 80 buttons<br /><br />If not is there a solution to this problem using ImageControl or are disabled icons not a feature that work with ImageControl?<br /><br />So far it is ony issue I have with codejock I haven't been able to figure out - and I have spent probably 50+ hours integrating it into my apps.  If I could get disabled icons to work it would be great.<br /><br />TIA - Brian]]>
   </description>
   <pubDate>Sun, 18 Apr 2004 11:22:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1656&amp;title=setting-disabled-icon-during-run-time#1656</guid>
  </item> 
  <item>
   <title><![CDATA[Setting Disabled Ic&#111;n during run time : Just use the new ImageManager...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1655&amp;title=setting-disabled-icon-during-run-time#1655</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 610<br /><strong>Posted:</strong> 17 April 2004 at 5:23pm<br /><br />Just use the new ImageManager control, it is allot easier to use. &nbsp;]]>
   </description>
   <pubDate>Sat, 17 Apr 2004 17:23:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1655&amp;title=setting-disabled-icon-during-run-time#1655</guid>
  </item> 
  <item>
   <title><![CDATA[Setting Disabled Ic&#111;n during run time : I&amp;#039;ve just gotten around to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1654&amp;title=setting-disabled-icon-during-run-time#1654</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=427">blockwood</a><br /><strong>Subject:</strong> 610<br /><strong>Posted:</strong> 17 April 2004 at 5:05pm<br /><br />I've just gotten around to implementing this.  I had some disabled icons drawn up.<br /><br />If you use ImageList control I can't get a disabled icon to display a graphic.  it just greys out the block shape of the icon <br /><br />UseDisabledIcons property doesn't seem to have any effect.<br /><br />What I want to do is disable a control and then have it show my custom disabled icon graphic<br /><br />Here is the code I have now<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, ID_RUN_STOP, "Stop", -1, False)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.DescriptionText = "Stop"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.Enabled = False<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.IconId = DISABLED_SAVE<br /><br />...<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;'&nbsp;&nbsp;&nbsp;Use the disabled icons<br />&nbsp;&nbsp;&nbsp;&nbsp;c.Options.UseDisabledIcons = False<br /><br />Is what I'm trying to do possible with ImageList?]]>
   </description>
   <pubDate>Sat, 17 Apr 2004 17:05:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1654&amp;title=setting-disabled-icon-during-run-time#1654</guid>
  </item> 
  <item>
   <title><![CDATA[Setting Disabled Ic&#111;n during run time : you mean  Dim Control As CommandBarControl  Set...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1587&amp;title=setting-disabled-icon-during-run-time#1587</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=427">blockwood</a><br /><strong>Subject:</strong> 610<br /><strong>Posted:</strong> 08 April 2004 at 11:32pm<br /><br />you mean<br /><br />Dim Control As CommandBarControl<br /><br />Set Control = CommandBar.FindControl(, ID_EDIT_COPY,,True)<br />If Not Control Is Nothing Then<br />&nbsp;&nbsp;&nbsp;&nbsp;Control.iconid = DISABLED_ICON_CONSTANT<br />EndIf<br /><br />right?  if so that works.  thx for reply]]>
   </description>
   <pubDate>Thu, 08 Apr 2004 23:32:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1587&amp;title=setting-disabled-icon-during-run-time#1587</guid>
  </item> 
  <item>
   <title><![CDATA[Setting Disabled Ic&#111;n during run time : Dim Control As CommandBarControl Set...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1584&amp;title=setting-disabled-icon-during-run-time#1584</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 610<br /><strong>Posted:</strong> 08 April 2004 at 11:07pm<br /><br /><P style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 6.5pt"><FONT face="Times New Roman, Times, serif"><FONT size=3>Dim Control As CommandBarControl<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><O:P></O:P></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 6.5pt"><FONT face="Times New Roman, Times, serif"><FONT size=3>Set Control = CommandBar.FindControl(, ID_EDIT_COPY,,True)<BR>If Not Control Is Nothing Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;Control.enabled = False<O:P></O:P></FONT></FONT></SPAN></P><P><SPAN style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 6.5pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN-US; mso-fareast-: EN-US; mso-bidi-: AR-SA"><FONT face="Times New Roman, Times, serif">EndIf</FONT></SPAN></P><P><SPAN style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 6.5pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN-US; mso-fareast-: EN-US; mso-bidi-: AR-SA">Yes, you can change IconId, but if you use the ImageManager control you can place your normal, disabled, and hot icons all in one place and it will automatically use them.&nbsp; Just right-click on the ImageManager control and select the Id of the image you want to change the "disabled" icon.&nbsp; If it needs to be 2 different disabled icons, then you simple change IconId to the Id of another Image.</SPAN></P><span style="font-size:10px"><br /><br />Edited by SuperMario</span>]]>
   </description>
   <pubDate>Thu, 08 Apr 2004 23:07:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1584&amp;title=setting-disabled-icon-during-run-time#1584</guid>
  </item> 
  <item>
   <title><![CDATA[Setting Disabled Ic&#111;n during run time : Hi,  can you post code snipped...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1581&amp;title=setting-disabled-icon-during-run-time#1581</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=427">blockwood</a><br /><strong>Subject:</strong> 610<br /><strong>Posted:</strong> 08 April 2004 at 10:08pm<br /><br />Hi,<br /><br />can you post code snipped of how to Set Disabled Icon during run time.<br /><br />would the easiest way to do it is to change the IconId property when the enabled/disabled state changes?]]>
   </description>
   <pubDate>Thu, 08 Apr 2004 22:08:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=610&amp;PID=1581&amp;title=setting-disabled-icon-during-run-time#1581</guid>
  </item> 
 </channel>
</rss>