<?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 : No Grayed Text for Read &#079;nly Items</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : No Grayed Text for Read &#079;nly Items]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Jul 2026 11:06:33 +0000</pubDate>
  <lastBuildDate>Tue, 19 Oct 2004 13:24:33 +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=471</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[No Grayed Text for Read &#079;nly Items : Thanks. I was told by Oleg that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=3565&amp;title=no-grayed-text-for-read-only-items#3565</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 471<br /><strong>Posted:</strong> 19 October 2004 at 1:24pm<br /><br />Thanks.&nbsp; I was told by Oleg that this will be in the next release after 9.51.]]>
   </description>
   <pubDate>Tue, 19 Oct 2004 13:24:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=3565&amp;title=no-grayed-text-for-read-only-items#3565</guid>
  </item> 
  <item>
   <title><![CDATA[No Grayed Text for Read &#079;nly Items : I thought you all might want to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=3563&amp;title=no-grayed-text-for-read-only-items#3563</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 471<br /><strong>Posted:</strong> 19 October 2004 at 1:04pm<br /><br />I thought you all might want to know that a new property,PropertyGrid::ViewReadOnlyForeColor, has been added (I'm not sure ifthis is in 9.51).&nbsp; This allows you to set the color of the textfor ReadOnly items.&nbsp;]]>
   </description>
   <pubDate>Tue, 19 Oct 2004 13:04:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=3563&amp;title=no-grayed-text-for-read-only-items#3563</guid>
  </item> 
  <item>
   <title><![CDATA[No Grayed Text for Read &#079;nly Items : AddChildItemBinded is used to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=2109&amp;title=no-grayed-text-for-read-only-items#2109</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 471<br /><strong>Posted:</strong> 02 June 2004 at 6:50am<br /><br />AddChildItemBinded is used to store the value of your property griditems in variables that can be used by other subroutines and functionsin your application.&nbsp; This "binds" the property grid item to avariable, when the value of the property grid item is changed, thevariable is updated.&nbsp;&nbsp; Binding only occurs in one direction,that is, when you change the value of a property grid item via thegrid, the value of the variable is updated.&nbsp; However, if youchange the value of the variable witholut using the grid, the propertygrid item will not be updated, you would need to manually update theproperty grid item to reflect the change.<br><br>The "Handler" parameter is the form that has the variable that theproperty grid is bound to.&nbsp; You can not bind to variables inmodules, the variables must be included within an objects code.<br><br>The "Property" parameter is the name of the variable in "stringnotation"&nbsp; this mean you pass the name of the variable theproperty grid item will be bound to and it can have spaces andupper/lower case letters.&nbsp; This will appear at the caption for theproperty grid item unless you manually change the caption of theproperty grid item.<br><br>Hope this helps<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0"><br>]]>
   </description>
   <pubDate>Wed, 02 Jun 2004 06:50:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=2109&amp;title=no-grayed-text-for-read-only-items#2109</guid>
  </item> 
  <item>
   <title><![CDATA[No Grayed Text for Read &#079;nly Items : Hi, thanks for the great example....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=2107&amp;title=no-grayed-text-for-read-only-items#2107</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=554">hd3810</a><br /><strong>Subject:</strong> 471<br /><strong>Posted:</strong> 01 June 2004 at 8:15pm<br /><br /><P><strong>Hi,</strong></P><P><strong>thanks for the great example. i have tried to look up </strong>AddChildItemBinded in the documentation and did not find much description. can someone please share the usage instruction of this function? what is the purpose of this function? what is the "Handler" parameter?</P><P>thanks so much.</P>]]>
   </description>
   <pubDate>Tue, 01 Jun 2004 20:15:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=2107&amp;title=no-grayed-text-for-read-only-items#2107</guid>
  </item> 
  <item>
   <title><![CDATA[No Grayed Text for Read &#079;nly Items : SuperMario, I have a small follow-up...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=1567&amp;title=no-grayed-text-for-read-only-items#1567</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 471<br /><strong>Posted:</strong> 07 April 2004 at 1:58pm<br /><br /><P>SuperMario,</P><P>I have a small follow-up on this technique that prevents it from being a total solution.&nbsp; Even if you use this technique, the user can right-click on the value and "Paste" a value.</P><P>Any chance this can be fixed for the 8.70 release?</P>]]>
   </description>
   <pubDate>Wed, 07 Apr 2004 13:58:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=1567&amp;title=no-grayed-text-for-read-only-items#1567</guid>
  </item> 
  <item>
   <title><![CDATA[No Grayed Text for Read &#079;nly Items : Opps, that was supposed to read...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=1139&amp;title=no-grayed-text-for-read-only-items#1139</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 471<br /><strong>Posted:</strong> 24 February 2004 at 11:07am<br /><br />Opps, that was supposed to read "If you have only one item to display, then add it as aconstraint and set no flags."&nbsp; I edited the original post so noone else gets confused.]]>
   </description>
   <pubDate>Tue, 24 Feb 2004 11:07:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=1139&amp;title=no-grayed-text-for-read-only-items#1139</guid>
  </item> 
  <item>
   <title><![CDATA[No Grayed Text for Read &#079;nly Items : Great suggestion, SuperMario....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=1138&amp;title=no-grayed-text-for-read-only-items#1138</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 471<br /><strong>Posted:</strong> 24 February 2004 at 11:01am<br /><br /><P>Great suggestion, SuperMario.&nbsp; Thanks!&nbsp; I only have 1 item to display, so I obviously&nbsp;didn't set the flag for ItemHasComboButton and it worked.&nbsp; It turns out that even if there is only one item in the Constraint list, the drop-down arrow is still displayed.</P><P>While this is a good workaround, it's a few extra lines of code to implement it.&nbsp; I hope that Codejock will still consider providing an option to control how read only items are displayed.</P>]]>
   </description>
   <pubDate>Tue, 24 Feb 2004 11:01:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=1138&amp;title=no-grayed-text-for-read-only-items#1138</guid>
  </item> 
  <item>
   <title><![CDATA[No Grayed Text for Read &#079;nly Items :  No, I am sure there is no way...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=1135&amp;title=no-grayed-text-for-read-only-items#1135</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 471<br /><strong>Posted:</strong> 24 February 2004 at 10:39am<br /><br />No, I am sure there is no way to get rid of the "grey" in a read onlyproperty.&nbsp; All I do to work around this is add the item as aconstraint and set the <span style="font-style: italic;">ConstraintEdit</span>= True, which keeps them from editing the text.&nbsp; The code belowhas a property called Operating System that will have three items tochose from.&nbsp; The user can only read the text, they can not changethe values.&nbsp; But they can still select between the threechoices.&nbsp; If you have only one item to display, then add it as aconstraint and set no flags.&nbsp; <br><br>&nbsp;&nbsp;&nbsp; Dim Category As IPropertyGridItem<br>&nbsp;&nbsp;&nbsp; Dim Item As IPropertyGridItem<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp;&nbsp; Set Category = wndPropertyGrid.AddCategory("Platform")<br>&nbsp;&nbsp;&nbsp; Set Item = Category.AddChildItemBinded(PropertyItemString, Me, "Operating System")<br>&nbsp;&nbsp;&nbsp; Item.Constraints.Add "Windows XP"<br>&nbsp;&nbsp;&nbsp; Item.Constraints.Add "Windows 2000"<br>&nbsp;&nbsp;&nbsp; Item.Constraints.Add "Windows 98"<br>&nbsp;&nbsp;&nbsp; Item.ConstraintEdit = True<br>&nbsp;&nbsp;&nbsp; Item.Flags = ItemHasComboButton <br><br>This will appear to the user as read only.<img src="http://forum.codejock.com/smileys/smiley17.gif" border="0"><br><span style="font-size:10px"><br /><br />Edited by SuperMario</span>]]>
   </description>
   <pubDate>Tue, 24 Feb 2004 10:39:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=1135&amp;title=no-grayed-text-for-read-only-items#1135</guid>
  </item> 
  <item>
   <title><![CDATA[No Grayed Text for Read &#079;nly Items : The Properties Grid displays Read...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=1133&amp;title=no-grayed-text-for-read-only-items#1133</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 471<br /><strong>Posted:</strong> 24 February 2004 at 9:49am<br /><br /><P>The Properties Grid displays Read Only items in a "grayed"&nbsp;font color.&nbsp; This is helpful when you need to&nbsp;visually distinguish between items that can be modified and items&nbsp;that are read only.</P><P>I have a need to create a property grid that is entirely read only.&nbsp; Since all items are read only, they all appear in "grayed" text.&nbsp; Since the "grayed" text can sometimes be harder to read, I would like to be able to disable the "graying" of read-only items.&nbsp; If this cannot be done in 8.61, could you possible add a feature to the control in 8.62 to allow for this?&nbsp; Either a flag that disables the special drawing of read-only items or a property that lets you specify the fore color of those items.</P><P>Thank you again!</P>]]>
   </description>
   <pubDate>Tue, 24 Feb 2004 09:49:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=471&amp;PID=1133&amp;title=no-grayed-text-for-read-only-items#1133</guid>
  </item> 
 </channel>
</rss>