<?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 : Report Control in dialog layout problems</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Report Control in dialog layout problems]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 05 Jun 2026 16:19:52 +0000</pubDate>
  <lastBuildDate>Sat, 02 Jun 2007 07:55: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=7017</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[Report Control in dialog layout problems : Hi,The Report Wnd class is defined...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7017&amp;PID=23384&amp;title=report-control-in-dialog-layout-problems#23384</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 7017<br /><strong>Posted:</strong> 02 June 2007 at 7:55am<br /><br />Hi,<br><br>The Report Wnd class is defined in XTPREPORTCTRL_CLASSNAME. See implementations of: CXTPReportControl::RegisterWindowClass,&nbsp; CXTPReportControl::Create<br>&nbsp;<br>See also our ReportDialog sample.<br><br><br>About columns --&nbsp; see methods:<br>&nbsp;&nbsp;&nbsp; CXTPReportColumn::IsAutoSize, bAutoSize parameter in the constructor<br>&nbsp;&nbsp;&nbsp; CXTPReportColumn::IsResizable, EnableResize<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Sat, 02 Jun 2007 07:55:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7017&amp;PID=23384&amp;title=report-control-in-dialog-layout-problems#23384</guid>
  </item> 
  <item>
   <title><![CDATA[Report Control in dialog layout problems : OK, got it drawing the extended...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7017&amp;PID=23015&amp;title=report-control-in-dialog-layout-problems#23015</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 7017<br /><strong>Posted:</strong> 17 May 2007 at 10:51pm<br /><br />OK, got it drawing the extended styles at the start.&nbsp; I had to call CreateEx to do it though, which requires a WndClass.&nbsp; I couldn't find a way to get the WndClass of the report control, so I just used AfxRegisterWndClass(0), which seems to work.<DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Need to add a CreateEx call to the report control.</DIV>]]>
   </description>
   <pubDate>Thu, 17 May 2007 22:51:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7017&amp;PID=23015&amp;title=report-control-in-dialog-layout-problems#23015</guid>
  </item> 
  <item>
   <title><![CDATA[Report Control in dialog layout problems : As I thought, if I use a call...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7017&amp;PID=23014&amp;title=report-control-in-dialog-layout-problems#23014</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 7017<br /><strong>Posted:</strong> 17 May 2007 at 10:34pm<br /><br />As I thought, if I use a call to Create to create the report control, the scrollbars work.<DIV>&nbsp;</DIV><DIV>Down-side is I'm having trouble setting extended styles on the control now for its border.&nbsp; I'm calling Invalidate() to get it to redraw, but it wont.</DIV><DIV>&nbsp;</DIV><DIV>not until I expand a tree item in the report - then it displays the border on the control.&nbsp; It's driving me nuts.</DIV><DIV>&nbsp;</DIV><DIV>Also, I tried setting autosize off on some columns, but now I can't manually resize them either?&nbsp; what's with that?&nbsp; Surely turning off auto-resizing should do that, and that alone - not disable sizing altogether.</DIV>]]>
   </description>
   <pubDate>Thu, 17 May 2007 22:34:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7017&amp;PID=23014&amp;title=report-control-in-dialog-layout-problems#23014</guid>
  </item> 
  <item>
   <title><![CDATA[Report Control in dialog layout problems : Hi  thanks for your reply. I&amp;#039;m...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7017&amp;PID=23013&amp;title=report-control-in-dialog-layout-problems#23013</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 7017<br /><strong>Posted:</strong> 17 May 2007 at 10:11pm<br /><br />Hi<DIV>&nbsp;</DIV><DIV>thanks for your reply.&nbsp; I'm having problem with vertical scroll as well.&nbsp; Basically the scroll-bars don't seem to get messages.&nbsp; If I click in the control and use the mouse-wheel it scrolls, but the scroll-bar itself ignores mouse events.</DIV><DIV>&nbsp;</DIV><DIV>My code is like this</DIV><DIV>&nbsp;</DIV><DIV>in the DIALOG RC file, I have created a frame items.&nbsp; it has styles WS_NOTIFY, WS_VISIBLE, and WS_EXCLIENTEDGE</DIV><DIV>&nbsp;</DIV><DIV>then in the dialog class, I use</DIV><DIV>&nbsp;</DIV><DIV>DDX_Control(pDX, IDC_REPORTCONTROL,&nbsp;&nbsp;m_Schema);</DIV><DIV>&nbsp;</DIV><DIV>This then creates the control with the styles that the control in the dialog resource has.&nbsp; To draw I use</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;CXTPReportColumn* pFirstCol = new CXTPReportColumn(0, "Symbol", 180, FALSE);</DIV><DIV>&nbsp;m_Schema.BeginUpdate();<BR>&nbsp;<BR>&nbsp;m_Schema.AddColumn(pFirstCol);<BR>&nbsp;m_Schema.AddColumn(new CXTPReportColumn(1, "Type", 70, FALSE));<BR>&nbsp;m_Schema.AddColumn(new CXTPReportColumn(2, "Access", 70, TRUE));</DIV><DIV>&nbsp;pFirstCol-&gt;SetTreeColumn(TRUE);<BR></DIV><DIV>&nbsp;m_Schema.AddRecord(...);<BR>&nbsp;m_Schema.AddRecord(...);<BR></DIV><DIV>etc</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;m_Schema.Populate();</DIV><DIV>&nbsp;m_Schema.GetSelectedRows()-&gt;Clear();<BR>&nbsp;m_Schema.EndUpdate();<BR>&nbsp;m_Schema.RedrawControl();<BR></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I suspect if I explicitly call Create on the control it may get the scroll-messages but I haven't tried that one yet.</DIV><DIV>&nbsp;</DIV><DIV>couple of things I don't like.</DIV><DIV>&nbsp;</DIV><DIV>1. Have to call Clear() on GetSelectedRows, else the control selects row 1 by default, which paints it grey.&nbsp; by default nothing should be selected until a user explicitly selects it.</DIV><DIV>&nbsp;</DIV><DIV>2. Clicking outside a row in the control doesn't reset the selected rows either.&nbsp; It would be nice if it did, otherwise I have to add a notify handler to do this.</DIV><DIV>&nbsp;</DIV><DIV>3. The tree control mode doesn't use standard tree control layout.&nbsp; specifically an expand/contract glyph has&nbsp;an&nbsp;"elbow"&nbsp;line coming into it from the side rather than a straight one down from the top&nbsp;the top (as in a tree control), and the line style is not settable (i.e. can't do dotted lines like a real tree control).</DIV><DIV>&nbsp;</DIV><DIV>Adrien</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 17 May 2007 22:11:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7017&amp;PID=23013&amp;title=report-control-in-dialog-layout-problems#23013</guid>
  </item> 
  <item>
   <title><![CDATA[Report Control in dialog layout problems : Hi,1) Scrolling at least is working...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7017&amp;PID=22954&amp;title=report-control-in-dialog-layout-problems#22954</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 7017<br /><strong>Posted:</strong> 16 May 2007 at 4:50pm<br /><br />Hi,<br><br>1) Scrolling at least is working in a regular sample applications; I'm not sure which methods you call and in which sequence to make it non-working; need more information, an attached piece of code for example.<br><br>2) You can leave AutoColumnSizing enabled, but disable resizing for each particular column except the last one for example. In this case only the last column will be resized with the control itself.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Wed, 16 May 2007 16:50:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7017&amp;PID=22954&amp;title=report-control-in-dialog-layout-problems#22954</guid>
  </item> 
  <item>
   <title><![CDATA[Report Control in dialog layout problems : PS, this is 11.1.0 ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7017&amp;PID=22590&amp;title=report-control-in-dialog-layout-problems#22590</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 7017<br /><strong>Posted:</strong> 06 May 2007 at 5:43pm<br /><br />PS, this is 11.1.0]]>
   </description>
   <pubDate>Sun, 06 May 2007 17:43:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7017&amp;PID=22590&amp;title=report-control-in-dialog-layout-problems#22590</guid>
  </item> 
  <item>
   <title><![CDATA[Report Control in dialog layout problems : Hi  I&amp;#039;m having problems...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7017&amp;PID=22459&amp;title=report-control-in-dialog-layout-problems#22459</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 7017<br /><strong>Posted:</strong> 30 April 2007 at 7:27pm<br /><br />Hi<DIV>&nbsp;</DIV><DIV>I'm having problems with the report control layout using it in a dialog.&nbsp; I'm using it as a replacement for a CListCtrl, so that I can set font / styles / colours etc per cell.</DIV><DIV>&nbsp;</DIV><DIV>If you set SetAutoColumnSizing(FALSE), so that resizing columns kinda behaves itself (i.e. only resizes the column you are resizing), then if you make the headers wider than the window (I'm using the control inside a dialog, so it's restricted in size) it displays a scrollbar.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>The scrollbar doesn't respond to any mouse events, so you can't actually scroll to see the final columns, which makes for an unpleasant user experience.</DIV><DIV>&nbsp;</DIV><DIV>Also if the total columns doesn't add up to the width of the control, then the final gap is exactly that - a gap: no gridlines.&nbsp; It's a bit ugly.</DIV><DIV>&nbsp;</DIV><DIV>So is there a workaround for this?&nbsp; Do I have to add an empty column at the end or something?&nbsp; And what about scrolling?</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV><DIV>Adrien</DIV>]]>
   </description>
   <pubDate>Mon, 30 Apr 2007 19:27:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7017&amp;PID=22459&amp;title=report-control-in-dialog-layout-problems#22459</guid>
  </item> 
 </channel>
</rss>