Print Page | Close Window

Report Control and Splitter

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=15375
Printed Date: 29 September 2024 at 1:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report Control and Splitter
Posted By: mawi
Subject: Report Control and Splitter
Date Posted: 15 October 2009 at 6:01pm
Hi,

we've implemented a docking pane containing a splitter configured to use 3 rows.
Each row contains a ReportControl.

Everything seems to work fine except one stragne behaviour:

how to repeat:
1) some other docking panes are created (panes are docked)
2) our problematic docking pane with splitter and report controls is created (pane is docked)
3) left mouse click on a report column header (eg. change sort order)
4) undock our pane (double click on pane header)
5) error: all other panes do not get any mouse events any more
    the menu of the application is still working, also the toolbar buttons get mouse events.
   (I'd like to drag an item from another pane containing a tree-view to my undocked problematic pane.)
6) after re-docking the problematic pane, the other panes gets their mouse events again...

How can I fix this problem? Any idea?
Is there something wrong with my the parent or owner of the report control or of the splitter window?
(I've checkted the pointers, they seems to be OK.)
Do I have to set a specific configuration at the DockingPaneManager to handle a splitter correctly?

thanks for response ...



Replies:
Posted By: mawi
Date Posted: 01 December 2009 at 9:46am
Finally I've found the problem myself. My window that should be shown in the docking pane was derived from CWnd which is an error.

class DataTransmissionGUIDlg
 : public CWnd  // also tried to derive directly from CXTSplitterWnd (same problem)
...

I've enhanced the ActivePaneView example with a splitter window and there I could see that I need a CView derived class instad of a CWnd derived one.
The CView derived class can then be attached to the pane using pPane->AttachView(pMyFrameWindow, RUNTIME_CLASS(...)) instead of pPane->Attache(pMyCWndDerivedClass);

After changing the creation process of my window the header-click problem is gone.  



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net