Print Page | Close Window

AddExpandButton sample

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17848
Printed Date: 16 November 2024 at 8:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: AddExpandButton sample
Posted By: ChrisBamford
Subject: AddExpandButton sample
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net