Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Report control - fixed column
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report control - fixed column

 Post Reply Post Reply
Author
Message
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post Topic: Report control - fixed column
    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
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.