Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - How to use OutlookBar with Dialog-based  app ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to use OutlookBar with Dialog-based app ?

 Post Reply Post Reply
Author
Message
compvis View Drop Down
Groupie
Groupie
Avatar

Joined: 07 March 2008
Location: Vietnam
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote compvis Quote  Post ReplyReply Direct Link To This Post Topic: How to use OutlookBar with Dialog-based app ?
    Posted: 02 June 2008 at 9:23pm
Hello everyone !
 
How to use OutlookBar control with Dialog-based application ?
 
Thanks
I love ToolkitPro, Suite Pro ! Thanks Codejock !
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 03 June 2008 at 1:14am
Hi,
 
if you mean CXTPTaskDialog class, see Samples\TaskPanel\TaskPanel\SearchDlg.cpp  sources.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
compvis View Drop Down
Groupie
Groupie
Avatar

Joined: 07 March 2008
Location: Vietnam
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote compvis Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2008 at 5:57am
Hello Oleg !
 
Now i have dialog likes Outlookbar style (using taskpanel).  But i have a question. How to handle events on that dialog ?
 
Such as below, this is my dialog:
 
 
I want to handle events of check1, check2, check3...
 
thanks
I love ToolkitPro, Suite Pro ! Thanks Codejock !
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 03 June 2008 at 6:24am
Hi,
 
Cath BN_CLICKED  notification.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
compvis View Drop Down
Groupie
Groupie
Avatar

Joined: 07 March 2008
Location: Vietnam
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote compvis Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2008 at 11:48pm
Hi Oleg !
 
Thanks for your reply but where i cant catch this event. My taskpanel is placed on docking pane and in OnInitDialog() function of docking pane class, i create taskpane as below:
 
CXTPClientRect rc(this);
 rc.right =298;
 rc.left = 2;
 rc.bottom = 750;
 
 m_wndTaskPanel.Create(WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN|WS_TABSTOP, rc, this, 0);
 m_wndTaskPanel.SetTheme(xtpTaskPanelThemeToolboxWhidbey);
 m_wndTaskPanel.NavigateItems(TRUE);
 m_wndTaskPanel.SetBehaviour(xtpTaskPanelBehaviourExplorer);
 m_wndTaskPanel.SetHotTrackStyle(xtpTaskPanelHighlightItem);
 m_wndTaskPanel.SetSelectItemOnFocus(TRUE);
 m_wndTaskPanel.AllowDrag(TRUE);
 m_wndTaskPanel.SetOwner(this);
 CXTPTaskPanelGroup* pGroup = m_wndTaskPanel.AddGroup(ID_TASKPANEL_GRAPH);

 m_ctrlgraph.Create(IDD_CONTROL_GRAPH, &m_wndTaskPanel);
 CXTPTaskPanelGroupItem* pItem = pGroup->AddControlItem(m_ctrlgraph);
 pGroup->SetCaption(_T("Graph option"));
 pItem->GetMargins().SetRect(0, 0, 0, 0);
 m_ctrlgraph.SetItem(pItem);
 pGroup->SetExpanded(FALSE);
 
 pGroup = m_wndTaskPanel.AddGroup(ID_TASKPANEL_CONTROL);
 pGroup->SetCaption(_T("E5CK Control"));
 pGroup->AddTextItem(_T("Start"));
 pGroup->AddTextItem(_T("Stop"));

 m_wndTaskPanel.Reposition(FALSE);
 
Check and Edit boxes is placed on IDD_CONTROL_GRAPH, now i want to get value from Edit boxes and handle events of check boxes.
 
Pls help me !
 
Thanks !
 
(Sorry ! English is not my native language)
 
I love ToolkitPro, Suite Pro ! Thanks Codejock !
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 04 June 2008 at 12:55am
Hi,
 
Button always send it to parent. So you need catch it in m_ctrlgrap class.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 04 June 2008 at 7:04am

Hi compvis, hi Oleg;

as seen in code, m_wndTaskPanel's parent ist the dialog not the graph control --> see create function (parent=this)

Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
compvis View Drop Down
Groupie
Groupie
Avatar

Joined: 07 March 2008
Location: Vietnam
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote compvis Quote  Post ReplyReply Direct Link To This Post Posted: 05 June 2008 at 2:42am
Hi Martin,
 
I imitated the sample "\Codejock Software\MFC\Xtreme ToolkitPro v11.2.2\Samples\TaskPanel\TaskPanel".
 
I copied TaskpanelDlg.h and  TaskpanelDlg.cpp into my project. I found that CTaskPanelDlg is not base class of any IDD_DIALOG_XXX. (Strange !!!)
 
Although i created the taskpane (dialog based) on docking pane (dialog based) but i couln't get data from controls on these dialog.
 
Mr. Oleg said that "Send request to supports@codejock.com. We will create sample for you". I sent request but nothing replied.
 
Martin, could you help me ?
 
Thanks
I love ToolkitPro, Suite Pro ! Thanks Codejock !
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.