Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - AddExpandButton sample
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

AddExpandButton sample

 Post Reply Post Reply
Author
Message
ChrisBamford View Drop Down
Newbie
Newbie


Joined: 02 February 2011
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote ChrisBamford Quote  Post ReplyReply Direct Link To This Post Topic: AddExpandButton sample
    Posted: 09 February 2011 at 6:29am
Hi Guys,

I'm trying to add an ellipsis button to a report control record item and was having difficulty in getting it working, I looked for a sample in the Codejock distribution but couldn't find one.

Here's the basic code:


// add columns to the report control
m_xtRecentFolderList.AddColumn(new CXTPReportColumn(0, _T("Include"), 100));
m_xtRecentFolderList.AddColumn(new CXTPReportColumn(1, _T("Folder"), 100));

m_xtRecentFolderList.AllowEdit(TRUE);
m_xtRecentFolderList.GetColumns()->Find(0)->GetEditOptions()->m_bAllowEdit = FALSE;
m_xtRecentFolderList.GetColumns()->Find(1)->GetEditOptions()->m_bAllowEdit = FALSE;
m_xtRecentFolderList.GetColumns()->Find(1)->GetEditOptions()->AddExpandButton(TRUE);

m_xtRecentFolderList.GetReportHeader()->SetAutoColumnSizing(FALSE);
m_xtRecentFolderList.GetReportHeader()->AllowColumnResize(TRUE);
m_xtRecentFolderList.GetReportHeader()->AllowColumnRemove(FALSE);
m_xtRecentFolderList.SetMultipleSelection(FALSE);
//m_xtRecentFolderList.FocusSubItems(FALSE);
m_xtRecentFolderList.GetPaintManager()->SetColumnStyle(xtpReportColumnOffice2007);
m_xtRecentFolderList.Populate();


Is there a sample I can look at to get this working ?

Many thanks in advance.

Chris.
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.156 seconds.