![]() |
CXTPReportControl |
Post Reply ![]() |
Author | |
dennisV ![]() Senior Member ![]() ![]() Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
![]() ![]() ![]() ![]() ![]() Posted: 17 December 2004 at 6:43am |
I tried searching, but didn't find any info on this - perhaps I missed it, but... When I remove all columns from the report control by dragging them off it, how do I get them back? I mean, when there isn't a single column in the control, there's nothing for other columns to dock on upon dragging them from the field chooser. So, once all columns are removed, the only solution is to delete the registry key (I store control state there). But there must be some way to restore columns - please help |
|
// W7 64 Ultimate SP1
// VS 2008 // CodeJock 16.2.3 (MFC) |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
If all columns are removed you can't drag and drop a column from the field chooser? I just tried this with no problems.
|
|
![]() |
|
dennisV ![]() Senior Member ![]() ![]() Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
![]() ![]() ![]() ![]() ![]() |
Doesn't work for me Just compared what it looks like with the original CodeJock sample and I don't have the gray line in which all columns actually are supposed to be. My control is totally white, without the top light-gray line. Where did it go? |
|
// W7 64 Ultimate SP1
// VS 2008 // CodeJock 16.2.3 (MFC) |
|
![]() |
|
ICBM ![]() Groupie ![]() Joined: 15 January 2004 Location: New Zealand Status: Offline Points: 57 |
![]() ![]() ![]() ![]() ![]() |
I get this broken behaviour too. Problem is that, with no columns displayed, the context menu (needed to access the field chooser) does not appear when you right click the header, which is blank. It also brings up a secondary issue with the sample code - the field chooser is implemented as a dialog bar, which is no good if you are using the report control (note: control, not view) with an application whose main window is a dialog box.
|
|
![]() |
|
dennisV ![]() Senior Member ![]() ![]() Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
![]() ![]() ![]() ![]() ![]() |
It works fine if you have auto-sizing turned on, but it doesn't work (the grey area doesn't appear) with auto-sizing off. Could the support please clarify if it's possible to have auto-sizing turned off and still have the grey bar at the top of the report control? Thanks, |
|
// W7 64 Ultimate SP1
// VS 2008 // CodeJock 16.2.3 (MFC) |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Thank you. Fixed.
To fix it in your source, please add in void CXTPReportHeader::AdjustColumnsWidth(int nTotalWidth, int nFirstIndex):
if (m_nHeaderWidth == 0)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
dennisV ![]() Senior Member ![]() ![]() Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
![]() ![]() ![]() ![]() ![]() |
Sorry, it doesn't seem to work Thanks Edited by dennisV |
|
// W7 64 Ultimate SP1
// VS 2008 // CodeJock 16.2.3 (MFC) |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
... void CXTPReportControl::DrawRows(CDC* pDC, CRect& rcClient) ... |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
dennisV ![]() Senior Member ![]() ![]() Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
![]() ![]() ![]() ![]() ![]() |
Yes, that did the trick And also, when is the next update due? Thanks. |
|
// W7 64 Ultimate SP1
// VS 2008 // CodeJock 16.2.3 (MFC) |
|
![]() |
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 |