Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - FooterRecords, HeaderRecords and markup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

FooterRecords, HeaderRecords and markup

 Post Reply Post Reply
Author
Message
crystyce View Drop Down
Groupie
Groupie


Joined: 19 August 2008
Location: Romania
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote crystyce Quote  Post ReplyReply Direct Link To This Post Topic: FooterRecords, HeaderRecords and markup
    Posted: 29 October 2009 at 8:56am
Hi,

I noticed that HeaderRecords and FooterRecords (wich are very usefull) can't use Markup. That's because EnableMarkup creates a MarkupContext just for plain records.

You can make this work by modifying CXTPReportControl::EnableMarkup like this:

void CXTPReportControl::EnableMarkup(BOOL bEnable)
{
     BOOL bOldEnable = GetMarkupContext() != NULL;
     if (bOldEnable == bEnable)
          return;

     XTPMarkupReleaseContext(m_pRecords->m_pMarkupContext);
     XTPMarkupReleaseContext(m_pHeaderRecords->m_pMarkupContext);
     XTPMarkupReleaseContext(m_pFooterRecords->m_pMarkupContext);


     if (bEnable)
     {
          m_pRecords->m_pMarkupContext = XTPMarkupCreateContext(m_hWnd);          m_pHeaderRecords->m_pMarkupContext = XTPMarkupCreateContext(m_hWnd);
          m_pFooterRecords->m_pMarkupContext = XTPMarkupCreateContext(m_hWnd);

     }
}

My question is: will this fixes (including the one here: GroupRow, Hyperlink and markup) ever be included in a release?

Because now when you will make a release I have to make the changes all over again for every computer.
     Product: Xtreme SuitePro (MFC) version 13.1.0
     Platform: Windows XP (32bit) - SP 2
     Language: Visual C++ 2008
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2009 at 3:36pm
We can consider it but not in 13.2.1 - later
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2009 at 10:10pm
I tested it - it works and I updared SVN - so it will be in 13.2.2 but you can get fresh source update here now - https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdated.rar
Back to Top
zaksoft View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2003
Location: Italy
Status: Offline
Points: 162
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaksoft Quote  Post ReplyReply Direct Link To This Post Posted: 01 November 2009 at 7:46am
Source from release have always the same date/time, yours (probably) real update time, from MFC source all
#define ACTIVEX
are removed, so it's difficult to understand witch files have been updated, I use Araxis Merge to compare folders, (since date cannot be used) but it's very difficult and can be error proning.
 
Already scheduled 13.2.2 release ?
 
TIA
VS2008 SP1 - VS2010 SP1 - VS2012 - MFC MBCS Statically linked
XTP 15.3.1 Static Link
---------------------------------------------------------
Davide Zaccanti - ZakSoft - www.zaksoft.com
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.141 seconds.