How to use OutlookBar with Dialog-based app ? |
Post Reply |
Author | |
compvis
Groupie Joined: 07 March 2008 Location: Vietnam Status: Offline Points: 36 |
Post Options
Thanks(0)
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 !
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
if you mean CXTPTaskDialog class, see Samples\TaskPanel\TaskPanel\SearchDlg.cpp sources.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
compvis
Groupie Joined: 07 March 2008 Location: Vietnam Status: Offline Points: 36 |
Post Options
Thanks(0)
|
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 !
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Cath BN_CLICKED notification.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
compvis
Groupie Joined: 07 March 2008 Location: Vietnam Status: Offline Points: 36 |
Post Options
Thanks(0)
|
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 !
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Button always send it to parent. So you need catch it in m_ctrlgrap class.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
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 |
|
compvis
Groupie Joined: 07 March 2008 Location: Vietnam Status: Offline Points: 36 |
Post Options
Thanks(0)
|
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 !
|
|
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 |