Tab and report control
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1312
Printed Date: 18 April 2024 at 2:11am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Tab and report control
Posted By: manish
Subject: Tab and report control
Date Posted: 23 October 2004 at 11:40am
Hi,
I am a newbie to the codejock world. i have toolkits till 9.50. I have a simple problem
I need a tab control that has a look and feel like eh tabs of one note and each of the tabs need to have a report control which is a simple listview control which should have different fonts for each row.
this is of atmost urgency as i have to finsih it by deadline and since the report sample and one note sample take time to understand since no simple tutorial is provided
Awaiting yr reply
this is what i req
thanks in advance
manish
|
Replies:
Posted By: Oleg
Date Posted: 25 October 2004 at 11:26am
use CXTPTabControl (see TabbdeView from last release),
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: manish
Date Posted: 26 October 2004 at 2:26am
Hi,
Can i put a reportcontrol in CTabbedViewView class
please give some sample code
thanks in advance
|
Posted By: Oleg
Date Posted: 26 October 2004 at 6:52am
in 9.50 we have CXTPReportView class.
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: manish
Date Posted: 26 October 2004 at 7:10am
Does CXTPReportView class. supports tabs,
my requirement is a tabcontrol that have tab header style like OneNote
and each tab child should be a reportcontrol like in the figure,
please let me know how can i do that , with some code
PLEASE!!!
thanks in advance
manish
|
Posted By: Oleg
Date Posted: 26 October 2004 at 11:32pm
https://forum.codejock.com/uploads/oleg/2004-10-26_233134_ReportControl.zip - 2004-10-26_233134_ReportControl.zip
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: manish
Date Posted: 28 October 2004 at 2:49pm
thanks Oleg,
yr sample provided me the UI that I wanted!!!
|
Posted By: manish
Date Posted: 01 November 2004 at 11:34am
HI oleg,
I have a small query
how to add the OnReportItemClick(NMHDR * pNotifyStruct, LRESULT * /*result*/) function to the class
CReportControlView
i have added the function but the click message in not coming
the report control is created as
int CTabbedViewView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CView::OnCreate(lpCreateStruct) == -1)
return -1;
m_wndTabControl.Create(WS_CHILD|WS_VIS IBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS,
CRect(0, 0, 0, 0), this, IDC_TABCONTROL);
m_wndTabControl.GetPaintManager()->SetAppearance(xtpTabAp pearancePropertyPage2003);
m_wndTabControl.GetPaintManager()->m_bHotTracking = TRUE;
m_wndTabControl.GetPaintManager()->m_bShowIcons = TRUE;
m_wndTabControl.GetPaintManager()->m_bOneNoteColors = TRUE;
m_wndTabControl.GetPaintManager()->DisableLunaColors(FALS E);
m_wndTabControl.GetImageManager()->SetIcons(IDB_TAB_ICONS , NULL, 0, CSize(16, 16), xtpImageNormal);
AddView(RUNTIME_CLASS(CReportControlView), _T("Inbox"), 3,&m_Ham);
AddView(RUNTIME_CLASS(CReportControlView), _T("Spam"), 0,&m_Spam);
--------
now what to add the id in notify map in the controlview class
please help
|
Posted By: Oleg
Date Posted: 02 November 2004 at 12:36am
add ON_NOTIFY(NM_CLICK, XTP_ID_REPORT_CONTROL, OnReportItemClick) to the message map.
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: manish
Date Posted: 14 November 2004 at 12:36am
NOT WORKING , i am using the sample u sent A tabbed view which has 3 reportcontrol views,
i have tried a rbuottondown even that is not working , onclick onselchanged , i need thaese messages , please help
oleg
please help
|
Posted By: Oleg
Date Posted: 16 November 2004 at 4:01am
in the sample I sent:
1. add in message map:
BEGIN_MESSAGE_MAP(CReportControlView, CXTPReportView)
... ON_NOTIFY(NM_CLICK, XTP_ID_REPORT_CONTROL, OnReportItemClick) END_MESSAGE_MAP()
2. add method:
void CReportControlView::OnReportItemClick(NMHDR * pNotifyStruct, LRESULT * /*result*/) { XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct;
if (!pItemNotify->pRow || !pItemNotify->pColumn) return; }
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: manish
Date Posted: 25 November 2004 at 9:53am
Hello oleg ,
Thanks for all the help you have provided, i need one more clue to my new problem.
In the tabbed view we are creating CReportcontrolView using Add view.
I tweaked the code to return me te pointer of the newely created class,
on which I am setting a strign value which will hold a path.
This path is used in OnTimer to Fill teh list.
But the problem is that when ontimer gets called then this string is NULL or zero length.
Can u suggest some alternative so that i can set this string and this string holds the value when OnTimer gets called.
Can u provide a better way incase this seems a bit odd.
Manish
|
|