![]() |
Report control - fixed column |
Post Reply
|
| Author | |
Warren
Groupie
Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Topic: Report control - fixed columnPosted: 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 |
|
![]() |
|
sserge
Moderator Group
Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Warren
Groupie
Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
sserge
Moderator Group
Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |