Tab and report control |
Post Reply |
Author | |
manish
Newbie Joined: 23 October 2004 Status: Offline Points: 9 |
Post Options
Thanks(0)
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
Edited by manish |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
use CXTPTabControl (see TabbdeView from last release),
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
manish
Newbie Joined: 23 October 2004 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
Hi,
Can i put a reportcontrol in CTabbedViewView class please give some sample code thanks in advance |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
in 9.50 we have CXTPReportView class.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
manish
Newbie Joined: 23 October 2004 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
manish
Newbie Joined: 23 October 2004 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
thanks Oleg, yr sample provided me the UI that I wanted!!! |
|
manish
Newbie Joined: 23 October 2004 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
add ON_NOTIFY(NM_CLICK, XTP_ID_REPORT_CONTROL, OnReportItemClick) to the message map.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
manish
Newbie Joined: 23 October 2004 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
in the sample I sent: 1. add in message map: BEGIN_MESSAGE_MAP(CReportControlView, CXTPReportView) ... 2. add method:
if (!pItemNotify->pRow || !pItemNotify->pColumn)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
manish
Newbie Joined: 23 October 2004 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
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 |
|
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 |