Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Tab and report control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tab and report control

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


Joined: 23 October 2004
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote manish Quote  Post ReplyReply Direct Link To This Post Topic: Tab and report control
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 25 October 2004 at 11:26am
use CXTPTabControl (see TabbdeView from last release),
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
manish View Drop Down
Newbie
Newbie


Joined: 23 October 2004
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote manish Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2004 at 2:26am
Hi,

Can i put a reportcontrol in CTabbedViewView class

please give some sample code



thanks in advance
Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2004 at 6:52am
in 9.50 we have CXTPReportView class.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
manish View Drop Down
Newbie
Newbie


Joined: 23 October 2004
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote manish Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2004 at 11:32pm
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
manish View Drop Down
Newbie
Newbie


Joined: 23 October 2004
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote manish Quote  Post ReplyReply Direct Link To This Post Posted: 28 October 2004 at 2:49pm


thanks Oleg,

yr sample provided me the UI that I wanted!!!


Back to Top
manish View Drop Down
Newbie
Newbie


Joined: 23 October 2004
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote manish Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
manish View Drop Down
Newbie
Newbie


Joined: 23 October 2004
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote manish Quote  Post ReplyReply Direct Link To This Post 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


Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
manish View Drop Down
Newbie
Newbie


Joined: 23 October 2004
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote manish Quote  Post ReplyReply Direct Link To This Post 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


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.078 seconds.