<?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 : Multiple line GridItem text?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Multiple line GridItem text?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 09:00:28 +0000</pubDate>
  <lastBuildDate>Tue, 21 Jun 2005 10:29:31 +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=2298</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[Multiple line GridItem text? :   SuperMario wrote:In the next...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=7201&amp;title=multiple-line-griditem-text#7201</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=756">gshawn</a><br /><strong>Subject:</strong> 2298<br /><strong>Posted:</strong> 21 June 2005 at 10:29am<br /><br /><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by SuperMario" alt="Originally posted by SuperMario" style="vertical-align: text-bottom;" /> <strong>SuperMario wrote:</strong><br /><br />In the next release (9.70), you can set the size of individual items, multi-line text support is also added<IMG src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></td></tr></table></P><P>&nbsp;</P><P>That's good news... Will this enhancement also be available in the ActiveX version of the control? Thanks.</P>]]>
   </description>
   <pubDate>Tue, 21 Jun 2005 10:29:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=7201&amp;title=multiple-line-griditem-text#7201</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple line GridItem text? : No, But I am really sure it will...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=7190&amp;title=multiple-line-griditem-text#7190</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 2298<br /><strong>Posted:</strong> 21 June 2005 at 6:33am<br /><br />No, But I am really sure it will be by the end of next week<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0">]]>
   </description>
   <pubDate>Tue, 21 Jun 2005 06:33:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=7190&amp;title=multiple-line-griditem-text#7190</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple line GridItem text? : Wonderful. Is there somewhere...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=7177&amp;title=multiple-line-griditem-text#7177</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1202">CGrant</a><br /><strong>Subject:</strong> 2298<br /><strong>Posted:</strong> 20 June 2005 at 5:35pm<br /><br /><P>Wonderful. Is there somewhere that states the release dates?</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 20 Jun 2005 17:35:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=7177&amp;title=multiple-line-griditem-text#7177</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple line GridItem text? : In the next release (9.70), you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=7176&amp;title=multiple-line-griditem-text#7176</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 2298<br /><strong>Posted:</strong> 20 June 2005 at 4:32pm<br /><br />In the next release (9.70), you can set the size of individual items, multi-line text support is also added<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0">]]>
   </description>
   <pubDate>Mon, 20 Jun 2005 16:32:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=7176&amp;title=multiple-line-griditem-text#7176</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple line GridItem text? : I have managed to display multiline...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=6960&amp;title=multiple-line-griditem-text#6960</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1202">CGrant</a><br /><strong>Subject:</strong> 2298<br /><strong>Posted:</strong> 08 June 2005 at 5:42pm<br /><br /><P>I have managed to <strong>display</strong> multiline text, though <strong>editing</strong> it still lies ahead.</P><P>Basically the code uses owner draw variable height and a class&nbsp;especially for the multi line text.</P><P>The property grid creation has to specify the style...</P><P><table width="99%"><tr><td><pre class="BBcode"><BR><FONT color=#0000ff>if</FONT> ( <FONT color=#808080>m_wndPropertyGrid</FONT>.<FONT color=#880000>Create</FONT>( <FONT color=#808080>rc</FONT>, <FONT color=#0000ff>this</FONT>, <FONT color=#a000a0>IDC_PROPERTY_GRID</FONT>, <FONT color=#a000a0>LBS_OWNERDRAWVARIABLE</FONT> ) )<BR></pre></td></tr></table></P><P>Then adding a property uses a new class</P><P><table width="99%"><tr><td><pre class="BBcode"><BR><FONT color=#0000ff>CXTPPropertyGridItem</FONT>* <FONT color=#808080>pSettings</FONT> = <FONT color=#808080>m_wndPropertyGrid</FONT>.<FONT color=#880000>AddCategory</FONT>(<FONT color=#a000a0>_T</FONT>(<FONT color=#000077>"Example"</FONT>));<BR><FONT color=#808080>strTesting</FONT> = <FONT color=#000077>"Hello\nWorld"</FONT>;<BR>(<FONT color=#0000ff>void</FONT>)<FONT color=#808080>pSettings</FONT>-&gt;<FONT color=#880000>AddChildItem</FONT>(<FONT color=#a000a0>new</FONT> <FONT color=#0000ff>CMultilineTextGridItem</FONT>(<FONT color=#a000a0>_T</FONT>(<FONT color=#000077>"TESTING"</FONT>), <FONT color=#808080>strTesting</FONT>, &amp;<FONT color=#808080>strTesting</FONT>));<BR></pre></td></tr></table></P><P>The class does the minimum possible to get text&nbsp;up (all comments removed for brevity)</P><P><table width="99%"><tr><td><pre class="BBcode"><BR>class CMultilineTextGridItem : public CXTPPropertyGridItem&nbsp; <BR>{<BR>public:<BR>&nbsp;&nbsp;&nbsp; CMultilineTextGridItem(CString strCaption, LPCTSTR strValue = NULL, CString* pBindString = NULL);<BR>&nbsp;&nbsp;&nbsp; &nbsp;virtual ~CMultilineTextGridItem();<BR>&nbsp;&nbsp;&nbsp; &nbsp;virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);<BR>&nbsp;&nbsp;&nbsp; &nbsp;virtual BOOL OnDrawItemValue(CDC&amp; dc, CRect rcValue);<BR>};<BR></pre></td></tr></table></P><P>The implementation is short too</P><P><table width="99%"><tr><td><pre class="BBcode"><BR><FONT color=#0000ff>CMultilineTextGridItem</FONT>::<FONT color=#0000ff>CMultilineTextGridItem</FONT>(<FONT color=#0000ff>CString</FONT> <FONT color=#808080>strCaption</FONT>, <FONT color=#0000ff>LPCTSTR</FONT> <FONT color=#808080>strValue</FONT>, <FONT color=#0000ff>CString</FONT>* <FONT color=#808080>pBindString</FONT>)<BR>:<FONT color=#0000ff>CXTPPropertyGridItem</FONT>(<FONT color=#808080>strCaption</FONT>, <FONT color=#808080>strValue</FONT>, <FONT color=#808080>pBindString</FONT>)<BR>{<BR><FONT color=#009900>&nbsp;&nbsp;&nbsp; // do nothing<BR></FONT>}</P><FONT color=#0000ff><P>CMultilineTextGridItem</FONT>::~<FONT color=#0000ff>CMultilineTextGridItem</FONT>()<BR>{<BR><FONT color=#009900>&nbsp;&nbsp;&nbsp; // do nothing<BR></FONT>}</P><FONT color=#0000ff><P>void</FONT> <FONT color=#0000ff>CMultilineTextGridItem</FONT>::<FONT color=#880000>MeasureItem</FONT>(<FONT color=#0000ff>LPMEASUREITEMSTRUCT</FONT> <FONT color=#808080>lpMeasureItemStruct</FONT>) <BR>{<BR><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; CXTPPropertyGridView</FONT>* <FONT color=#808080>pGrid</FONT> = <FONT color=#880000>GetGrid</FONT>();<BR><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; CDC</FONT> * <FONT color=#808080>dc</FONT> = <FONT color=#808080>pGrid</FONT>-&gt;<FONT color=#880000>GetDC</FONT>();<BR><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; CRect</FONT> <FONT color=#808080>rc</FONT>;<BR><FONT color=#808080><FONT color=#808080>&nbsp;&nbsp;&nbsp; dc</FONT>-&gt;<FONT color=#a000a0>DrawText</FONT>(<FONT color=#880000>GetValue</FONT>(), &amp;<FONT color=#808080>rc</FONT>, <FONT color=#a000a0>DT_CALCRECT</FONT> );<BR></FONT><FONT color=#808080>&nbsp;&nbsp;&nbsp; pGrid</FONT>-&gt;<FONT color=#880000>ReleaseDC</FONT>(<FONT color=#808080>dc</FONT>);<BR><FONT color=#808080>&nbsp;&nbsp;&nbsp; lpMeasureItemStruct</FONT>-&gt;<FONT color=#808080>itemHeight</FONT> = <FONT color=#808080>rc</FONT>.<FONT color=#880000>Height</FONT>();<BR>}</P><FONT color=#0000ff><P>BOOL</FONT> <FONT color=#0000ff>CMultilineTextGridItem</FONT>::<FONT color=#880000>OnDrawItemValue</FONT>(<FONT color=#0000ff>CDC</FONT>&amp; <FONT color=#808080>dc</FONT>, <FONT color=#0000ff>CRect</FONT> <FONT color=#808080>rcValue</FONT>)<BR>{<BR><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; CRect</FONT> <FONT color=#880000>rcText</FONT>(<FONT color=#808080>rcValue</FONT>);<BR><FONT color=#808080>&nbsp;&nbsp;&nbsp; dc</FONT>.<FONT color=#a000a0>DrawText</FONT>( <FONT color=#880000>GetValue</FONT>(), <FONT color=#808080>rcText</FONT>, <FONT color=#a000a0>DT_LEFT</FONT>);<BR><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; return</FONT> <FONT color=#a000a0>TRUE</FONT>;<BR>}<BR></pre></td></tr></table></P><P>I hope that helps someone else too; feel free to let me know of any bugs.</P><P>Colin</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 08 Jun 2005 17:42:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=6960&amp;title=multiple-line-griditem-text#6960</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple line GridItem text? : Thanks, I thought that was the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=6839&amp;title=multiple-line-griditem-text#6839</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1202">CGrant</a><br /><strong>Subject:</strong> 2298<br /><strong>Posted:</strong> 31 May 2005 at 11:04am<br /><br /><P>Thanks, I thought that was the case.<IMG src="http://forum.codejock.com/smileys/smiley18.gif" border="0"></P><P>I'm waiting to find out if it is an absolute requirement for my project or not. If it is then I'll look to see if there is a way to subclass and owner draw but it sounds like more effort than its worth.</P><P>Colin</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 31 May 2005 11:04:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=6839&amp;title=multiple-line-griditem-text#6839</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple line GridItem text? : I&amp;#039;ve been using the PropertyGrid...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=6832&amp;title=multiple-line-griditem-text#6832</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 2298<br /><strong>Posted:</strong> 31 May 2005 at 7:30am<br /><br />I've been using the PropertyGrid for a while, and I'm 99% sure there's no way to do this.&nbsp; I suggest submitting a feature request to Codejock.]]>
   </description>
   <pubDate>Tue, 31 May 2005 07:30:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=6832&amp;title=multiple-line-griditem-text#6832</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple line GridItem text? : I&amp;#039;ve been looking for a way...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=6823&amp;title=multiple-line-griditem-text#6823</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1202">CGrant</a><br /><strong>Subject:</strong> 2298<br /><strong>Posted:</strong> 30 May 2005 at 4:49pm<br /><br /><P>I've been looking for a way to add a textual grid item that has more than one line of text - e.g. an address or a user's short free format comment.</P><P>Any pointers would be appreciated</P><P>Colin</P>]]>
   </description>
   <pubDate>Mon, 30 May 2005 16:49:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2298&amp;PID=6823&amp;title=multiple-line-griditem-text#6823</guid>
  </item> 
 </channel>
</rss>