<?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 : Inplacebutton for readonly properties</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Inplacebutton for readonly properties]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 15:59:01 +0000</pubDate>
  <lastBuildDate>Wed, 20 May 2009 07:33:07 +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=14337</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[Inplacebutton for readonly properties : Hi,  You can&amp;#039;t have it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14337&amp;PID=49196&amp;title=inplacebutton-for-readonly-properties#49196</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14337<br /><strong>Posted:</strong> 20 May 2009 at 7:33am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You can't have it all <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>I'm not fond of rightclick standard popup menu anyway so... You can add own popup menu and add copy / paste functions yourself but that's your choise.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 20 May 2009 07:33:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14337&amp;PID=49196&amp;title=inplacebutton-for-readonly-properties#49196</guid>
  </item> 
  <item>
   <title><![CDATA[Inplacebutton for readonly properties : Hi,  It seem to work but with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14337&amp;PID=49188&amp;title=inplacebutton-for-readonly-properties#49188</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3138">dimdar</a><br /><strong>Subject:</strong> 14337<br /><strong>Posted:</strong> 20 May 2009 at 4:47am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>It seem to work but with Item.Flags = 0 I lost the possibility to do copy of the property value.<img src="http://forum.codejock.com/smileys/smiley5.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Wed, 20 May 2009 04:47:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14337&amp;PID=49188&amp;title=inplacebutton-for-readonly-properties#49188</guid>
  </item> 
  <item>
   <title><![CDATA[Inplacebutton for readonly properties : Hi,  You can try this instead:  Set...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14337&amp;PID=49187&amp;title=inplacebutton-for-readonly-properties#49187</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14337<br /><strong>Posted:</strong> 20 May 2009 at 4:36am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You can try this instead:</DIV><DIV>&nbsp;</DIV><DIV>Set propItem = Item.AddChildItem(PropertyItemString, "PropertyItemString", "abc")</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#000000><STRIKE>propItem.ReadOnly = True</STRIKE></FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><FONT color=#ff0000>propItem.Flags = 0<BR></FONT></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;propItem.InplaceButtons.Add 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;propItem.InplaceButtons(1).Enabled = True</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; propItem.CaptionMetrics.ForeColor = vbGrayed&nbsp; 'Now it looks the same as ReadOnly = true <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 20 May 2009 04:36:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14337&amp;PID=49187&amp;title=inplacebutton-for-readonly-properties#49187</guid>
  </item> 
  <item>
   <title><![CDATA[Inplacebutton for readonly properties :   Aaron wrote:Hi,   You can...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14337&amp;PID=49178&amp;title=inplacebutton-for-readonly-properties#49178</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3138">dimdar</a><br /><strong>Subject:</strong> 14337<br /><strong>Posted:</strong> 20 May 2009 at 3:37am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br />Hi, <DIV>&nbsp;</DIV><DIV>You can enable/disble inplacebutton directly:</DIV><DIV>&nbsp;</DIV><DIV>Set propItem = Item.AddChildItem(PropertyItemString, "PropertyItemString", "abc")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;propItem.InplaceButtons.Add&nbsp;1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; propItem.InplaceButtons(1).Enabled = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Or&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>With V13.0:</DIV><DIV>&nbsp;</DIV><DIV>wndPropertyGrid.FindItem(ID_PROPGRIDITEM).InplaceButtons.FindButton(ID_INPLACEBUTTON).Enabled = False (or True)&nbsp;&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>Already done but the button is missing and not visible&nbsp;and disabled. When property is readonly the InplaceButtons are not draw.</DIV><DIV>&nbsp;</DIV><DIV>Try this:</DIV><DIV><DIV>&nbsp;</DIV><DIV>Set propItem = Item.AddChildItem(PropertyItemString, "PropertyItemString", "abc")</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0099ff>propItem.ReadOnly = True</FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;propItem.InplaceButtons.Add&nbsp;1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; propItem.InplaceButtons(1).Enabled = <FONT color=#0099ff>True</FONT><BR></DIV></DIV>]]>
   </description>
   <pubDate>Wed, 20 May 2009 03:37:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14337&amp;PID=49178&amp;title=inplacebutton-for-readonly-properties#49178</guid>
  </item> 
  <item>
   <title><![CDATA[Inplacebutton for readonly properties : Hi,  You can enable/disble inplacebutton...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14337&amp;PID=49151&amp;title=inplacebutton-for-readonly-properties#49151</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14337<br /><strong>Posted:</strong> 19 May 2009 at 12:58pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You can enable/disble inplacebutton directly:</DIV><DIV>&nbsp;</DIV><DIV>Set propItem = Item.AddChildItem(PropertyItemString, "PropertyItemString", "abc")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;propItem.InplaceButtons.Add&nbsp;1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; propItem.InplaceButtons(1).Enabled = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Or&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>With V13.0:</DIV><DIV>&nbsp;</DIV><DIV>wndPropertyGrid.FindItem(ID_PROPGRIDITEM).InplaceButtons.FindButton(ID_INPLACEBUTTON).Enabled = False (or True)&nbsp;&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 19 May 2009 12:58:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14337&amp;PID=49151&amp;title=inplacebutton-for-readonly-properties#49151</guid>
  </item> 
  <item>
   <title><![CDATA[Inplacebutton for readonly properties : Hi,   I use the property control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14337&amp;PID=49148&amp;title=inplacebutton-for-readonly-properties#49148</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3138">dimdar</a><br /><strong>Subject:</strong> 14337<br /><strong>Posted:</strong> 19 May 2009 at 10:53am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>I use the property control for display many properties that are not changeable by users and many property display a directory path like C:\windows; c:\documents\data\; <a href="file://\\serv2\users" target="_blank">\\serv2\users</A>, etc. I need to put a button for open the path on explorer without do a copy and paste of it, so, I have added a button that open the folder with shell command but the buttons are not show if&nbsp;readonly property i set on true. I can I do it?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 19 May 2009 10:53:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14337&amp;PID=49148&amp;title=inplacebutton-for-readonly-properties#49148</guid>
  </item> 
 </channel>
</rss>