Toolbox - MDI |
Post Reply |
Author | |
venkyhyd
Groupie Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
Post Options
Thanks(0)
Posted: 29 June 2006 at 1:08am |
Hi, 1. How can I make the Toolbox sample which is SDI based to MDI, when I try to add the features as specified in Toolbox sample to an MDI Applicaiton the application crashes. Toolbox sample provided by Toolkit Pro evaluation kit is using splitter window but I want to make the same using Dockable panes in MDI.
2. Does Toolkit pro support Image Manipulation in Toolbars.
Can you suggest me on this....help me in evaluating the ToolKit pro.
Thanks & regards
venky
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
If application crashes, that mean you make something wrong :)
Attach code you tried and I will point to code need to change.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
venkyhyd
Groupie Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
Post Options
Thanks(0)
|
Able to resolve the crash it works fine but now when i try to move the dock window to some position in mainframe and try double clicking on the window would dock it to the same position from where it was undocked but an image of the Window remain at the position where it was dragged or placed before docking. And this Window will get closed only if i click on the cross button of the Window that to not exactly on the cross but on the near by coordinates of the cross (ie. in and around the cross button). I guess the mainframe is not getting Invalidated but calling Invalidate in the OnDockingPaneNotifyis not refreshing the Mainframe. Here is the code :
this is in OnCreate of Mainframe::
if (!InitCommandBars())
return -1; CXTPPaintManager::SetTheme(xtpThemeOfficeXP); CXTPCommandBars* pCommandBars = GetCommandBars();
CXTPToolBar* pStandardBar = (CXTPToolBar*)pCommandBars->Add(_T("Standard"), xtpBarTop); if (!pStandardBar ||!pStandardBar->LoadToolBar(IDR_MAINFRAME)) { TRACE0("Failed to create toolbar\n"); return -1;} m_paneManager.InstallDockingPanes( this);m_paneManager.SetTheme(xtpPaneThemeOffice); pwndPane1 = m_paneManager.CreatePane( IDR_PANE_OPTIONS, CRect(0, 0,200, 120), xtpPaneDockRight); pwndPane1->SetTitle ("Draw"); CXTPDockingPane* pwndPaneEdit = m_paneManager.CreatePane( 3, CRect(0, 0,200, 120), xtpPaneDockBottom); pwndPaneEdit->SetTitle(_T("Diagnostics Window")); ResetToolboxItems(); CreateTaskPanel(); In OnDockingPaneNotify:
if (wParam == XTP_DPN_SHOWWINDOW) {CXTPDockingPane* pPane = (CXTPDockingPane*)lParam; if (!pPane->IsValid()) { if (pPane->GetID() == IDR_PANE_OPTIONS) { if (!m_wndTaskPanel.m_hWnd) { CreateTaskPanel(); } pPane->Attach(&m_wndTaskPanel); } if (pPane->GetID() == 3){ if (!m_wndEdit.GetSafeHwnd()){ VERIFY(m_wndEdit.CreateEx(WS_EX_STATICEDGE, _T("EDIT"), _T(""), WS_CHILD|ES_AUTOVSCROLL|ES_MULTILINE, CRect(0, 0,200, 120), this, 0));m_wndEdit.SetFont(CFont::FromHandle((HFONT)GetStockObject(DEFAULT_GUI_FONT))); } pPane->Attach(&m_wndEdit); } } return TRUE; // handled} Invalidate(); return FALSE;} |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Call Attach method in OnDockingPaneNotify handler.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
venkyhyd
Groupie Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
Post Options
Thanks(0)
|
hello I have already made a call to Attach in OnDockingPaneNotify, can you pinpoint where i shld call the Attach method.
Thanks
venky
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
venkyhyd
Groupie Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
Post Options
Thanks(0)
|
Hello
I could resolve the issue. As i was handling the Msg Loop as per my custom requirement, but not as per the MFC architecture.
Does XTreme Toolkit pro Support Windows 2003 Server?
Thanks
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Yes, Windows 2003 Server is supported
|
|
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 |