<?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 : Colomn size adjust</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Colomn size adjust]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 07:23:37 +0000</pubDate>
  <lastBuildDate>Tue, 24 Jun 2008 03:13:02 +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=10991</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[Colomn size adjust : 1) I&amp;#039;m already using   ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10991&amp;PID=37308&amp;title=colomn-size-adjust#37308</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=66">zaksoft</a><br /><strong>Subject:</strong> 10991<br /><strong>Posted:</strong> 24 June 2008 at 3:13am<br /><br />1) I'm already using <DIV><FONT size=3><P></FONT><FONT size=2><FONT color=#010001><FONT color=#010001>m_wndReportCtrl</FONT></FONT>.<FONT color=#010001><FONT color=#010001>GetReportHeader</FONT></FONT>()-&gt;<FONT color=#010001><FONT color=#010001>AllowColumnRemove</FONT></FONT>( <FONT color=#010001><FONT color=#010001>FALSE</FONT></FONT>);</FONT></P><P><FONT size=2><FONT color=#010001><FONT color=#010001>m_wndReportCtrl</FONT></FONT>.<FONT color=#010001><FONT color=#010001>GetReportHeader</FONT></FONT>()-&gt;<FONT color=#010001><FONT color=#010001>AllowColumnReorder</FONT></FONT>(<FONT color=#010001><FONT color=#010001>FALSE</FONT></FONT>);</FONT></P><P><FONT size=2><FONT color=#010001><FONT color=#010001>m_wndReportCtrl</FONT></FONT>.<FONT color=#010001><FONT color=#010001>GetReportHeader</FONT></FONT>()-&gt;<FONT color=#010001><FONT color=#010001>SetAutoColumnSizing</FONT></FONT>( <FONT color=#010001><FONT color=#010001>TRUE</FONT></FONT>);</FONT></P><P><FONT size=2><FONT color=#010001><FONT color=#010001>m_wndReportCtrl</FONT></FONT>.<FONT color=#010001><FONT color=#010001>AdjustLayout</FONT></FONT>();</P><DIV>After that I insert all rows ( group are already define as long as column are inserted as all layout is fixed and know at design time)</DIV><DIV><FONT color=#010001 size=3><FONT color=#010001 size=3><P><FONT size=2>pCol</FONT></FONT></FONT> = <FONT color=#010001><FONT color=#010001>m_wndReportCtrl</FONT></FONT>.<FONT color=#010001><FONT color=#010001>AddColumn</FONT></FONT>( <FONT color=#0000ff><FONT color=#0000ff>new</FONT></FONT> <FONT color=#010001><FONT color=#010001>CXTPReportColumn</FONT></FONT>( ...));</P></DIV><DIV><FONT color=#010001><FONT color=#010001><P>pColumns</FONT></FONT>-&gt;<FONT color=#010001><FONT color=#010001>GetGroupsOrder</FONT></FONT>()-&gt;<FONT color=#010001><FONT color=#010001>Add</FONT></FONT>( <FONT color=#010001><FONT color=#010001>pCol</FONT></FONT>);</P></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV>2) This is the least significant (has only visual impact), so I'll try your suggestion in the future... hope you can provide a standard SetRowHeight(..) meanwhile..</DIV><DIV>&nbsp;</DIV><DIV>3) It seems that autosize is not working, last columns are not visible and cutted of.. as long as I move a group (even if dropped in the same position), in this case an auto arrangement is done and all columns fits into the window as expected. I need a way to call such function without asking the user to move group to have latest check box column visible...</DIV><DIV>&nbsp;</DIV><DIV>TIA</DIV><DIV>&nbsp;</DIV><DIV>P.S. I've found a simple workaround for (3), I save last pCol to be used in group and I call pColumns-&gt;<FONT color=#010001><FONT color=#010001>GetGroupsOrder</FONT></FONT>()-&gt;<FONT color=#010001><FONT color=#010001>Add</FONT></FONT>( ..) after populate()... But something must be adjusted and probably is related to defining groups before populating report... maybe you dont take in account indentetion ? And also re-calling ..AllowColumnReorder( FALSE) after populate leave the report in a state in witch user can swap groups.</FONT><FONT size=3></DIV></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 24 Jun 2008 03:13:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10991&amp;PID=37308&amp;title=colomn-size-adjust#37308</guid>
  </item> 
  <item>
   <title><![CDATA[Colomn size adjust : Hi Davide,1) Try using option:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10991&amp;PID=37296&amp;title=colomn-size-adjust#37296</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 10991<br /><strong>Posted:</strong> 23 June 2008 at 7:23pm<br /><br />Hi Davide,<br><br>1) Try using option: wndReport.GetReportHeader()-&gt;AllowColumnReorder(FALSE);<br><br>2) There are a few methods to change height of some row. An easiest way to change height of a group row will be to override implementation of the method CXTPReportPaintManager::GetRowHeight, with your personal method logic.<br>You can both whether to update sources of a toolkit (and rebuild it of course), or create a descendant Paint Manager class and override only this method. SetPaintManager will help to setup your changed paint manager.<br><br>3) Could you please describe actions which illustrate this issue? <br><br>--<br>Regards,<br>Serge]]>
   </description>
   <pubDate>Mon, 23 Jun 2008 19:23:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10991&amp;PID=37296&amp;title=colomn-size-adjust#37296</guid>
  </item> 
  <item>
   <title><![CDATA[Colomn size adjust : Any suggestion ? I&amp;#039;ve also...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10991&amp;PID=37288&amp;title=colomn-size-adjust#37288</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=66">zaksoft</a><br /><strong>Subject:</strong> 10991<br /><strong>Posted:</strong> 23 June 2008 at 4:26pm<br /><br />Any suggestion ? I've also opened a ticket last week...<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 23 Jun 2008 16:26:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10991&amp;PID=37288&amp;title=colomn-size-adjust#37288</guid>
  </item> 
  <item>
   <title><![CDATA[Colomn size adjust :   I&amp;#039;ve inserted a ListCtrl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10991&amp;PID=36548&amp;title=colomn-size-adjust#36548</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=66">zaksoft</a><br /><strong>Subject:</strong> 10991<br /><strong>Posted:</strong> 11 June 2008 at 7:01am<br /><br /><FONT size=2><img src="https://forum.codejock.com/uploads/20080611_065125_cjlist.jpg" border="0"></FONT><DIV>&nbsp;</DIV><DIV><FONT size=2>I've inserted a ListCtrl control into a CDialog to let user choose some options. User cannot resize or reorder column. Only numbers of copies can be edited or checkbox can be clicked to change print options.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Problems:</FONT></DIV><DIV><FONT size=2>1) I've not found an option to disable group reorder (they are fixed and set using ..<FONT color=#010001><FONT color=#010001>pColumns</FONT></FONT>-&gt;<FONT color=#010001><FONT color=#010001>GetGroupsOrder</FONT></FONT>()-&gt;<FONT color=#010001><FONT color=#010001>Add</FONT></FONT>( <FONT color=#010001><FONT color=#010001>pCol</FONT></FONT>);..)</FONT></DIV><DIV><FONT size=2>2) I need to set a smaller height for group (I've found </FONT><FONT color=#010001><FONT color=#010001 size=2>GetRowsHeight(..)&nbsp;but not a function to set)</FONT></FONT></DIV><DIV><FONT color=#010001 size=2>3) I'm not able to have all column shown correctly (I've also tryed to reduce indent gap to fit all columns as you can see in previous picture)&nbsp;. Autosize is set and if I move a group the column are resized as expeted (also using standard gap, no matter just move an item in group box and release it also in same position). No state is saved or restored, before and afterl filling (and using Populate() I've tryed to insert AdjustLayout() with no result.</FONT></DIV><DIV><FONT color=#010001 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#010001 size=2>TIA.</FONT></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 11 Jun 2008 07:01:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10991&amp;PID=36548&amp;title=colomn-size-adjust#36548</guid>
  </item> 
 </channel>
</rss>