Print Page | Close Window

Report control - fixed column

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3641
Printed Date: 09 November 2025 at 9:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report control - fixed column
Posted By: Warren
Subject: Report control - fixed column
Date Posted: 11 February 2006 at 7:46pm
I want to add a "fixed" column to the report control. Is this possible?

Basically what I'm trying to do is use the Report Control as a grid control (without having to add a grid control to my project - and so the look and feel is the same as the report controls that are all over my app). I'm already going to disable sorting/re-ordering/etc of the columns, so I don't need anything fancy here.

What I want is 1 fixed column, as well as the standard 1 fixed row , and the fixed column would not scroll out of view as the horizontal scroll bar was used to move columns out to the left
(basically the result would look much like Excel)

Is this easy to do, or should I go and stick a grid control in there?
(on this line of thinking, maybe a simplified grid control would be a good addition to the toolkit? - maybe some of the report control code could be re-used)

Thanks

Warren



Replies:
Posted By: sserge
Date Posted: 12 February 2006 at 2:31am
Hi Warren,

In the sample application provided with 9.81, disable automatic column sizing (Report Header menu), and try Freeze Columns feature (Report Control menu).

--
WBR,
Serge


Posted By: Warren
Date Posted: 13 February 2006 at 3:59pm
Okay, I see that now, thanks. Let me follow up with two more questions about the report control:

1) Is there an automatic way to make the Frozen Columns draw with the same style as the header row (i.e. in the dark grey colour)?

2) Is there a way to have the checkboxes draw the same as the regular dialog checkboxes? Right now they look very small (depending on resolution) and not nearly as nice as the rest of the report control (which looks very slick!)



If these are not possible please consider this as a feature request.

Thanks

Warren



Posted By: sserge
Date Posted: 14 February 2006 at 11:25am
Hi,

1) It's not yet supported automatically -- will consider as a feature request...

2) That's possible but not automatically -- you'll have to derive your class from standard item and override a virtual method which draws this checkbox (CXTPReportRecordItem::DrawCheckBox) -- then you'll have an ability to draw everything instead of standard picture.

Or an easier way -- create your Resource.dll and replace ReportGlyphs.bmp there.

--
WBR,
Serge



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net