CXTPDockingPane |
Post Reply |
Author | |
al1976
Newbie Joined: 27 September 2004 Location: Israel Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 27 September 2004 at 4:12pm |
Hi, I'm (newbie) trying to add some control (buttons, combobox...) to a CXTPDockingPane that is attached to an MDI application. It would be great if I could do it from the Visual Studio resrouce editor using a CFormView/CDialog ( if its possible) or any other way would be fine to. I'm using Xtreme Toolkit Pro 8.51 Thanks. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
1. add new CFormView class 2.Attach it:
LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam) if (!pPane->IsValid()) pPane->Attach(m_pFormFrame); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
al1976
Newbie Joined: 27 September 2004 Location: Israel Status: Offline Points: 7 |
Post Options
Thanks(0)
|
I still can't get it done... I have created thourgh the resource editor a new CFormView Class and added some controls, but I don't see anywere in your code above where do I attach the CFormView ID (IDD_LOAD_FILE_FORMVIEW). Plus, my application crashes on startup when I use the code above. Please help. This is my code: LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam) if (m_pFormFrame == NULL) m_pFormFrame->Create(NULL, NULL, WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS,
switch (pPane->GetID()) break; |
|
_Asafl_
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
al1976
Newbie Joined: 27 September 2004 Location: Israel Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Thanks !!!!!!!!!!!!!!!!!!!!!!! You guys have great support !!!!!!!!!!!!!! |
|
_Asafl_
|
|
Kenneth
Senior Member Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
|
I am using the example program in the following .zip 2004-09-28_234018_DockingFormView.zip If I size the CSimpleFormView window to exactly fit the size of the CFrameWnd, then if I left mouse click on the right view border, the CSimpleFormView window jumps back to the left about 1/4 inch. It then cannot be sized back to fit the CFrameWnd. What is causing this? I see the same problem in my application, which has a popup CFrameWnd (as in the Advanced example), where I create a pane that I place a CSplitterWnd, containing a CTreeview and CListView. All works, except when I left mouse click on the bottom of the pane to resize. The bottom of the pane jumps back 1/4" leaving a blank space between it and contols below it. The pane then cannot be sized back, it always leaves the 1/4" space. However I can size the CFrameWnd and remove the blank space. I am using Toolkit Pro version 9.51.
|
|
Indrajit
Newbie Joined: 17 July 2004 Location: Australia Status: Offline Points: 5 |
Post Options
Thanks(0)
|
Hi, This is probably a dummy question . How do I send/receive messages to/from controls (such as buttons, sliders & progress bars) in the embedded dialog of CSimpleFormView? I would appreciate any help on this. |
|
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 |