Print Page | Close Window

Crash/"bug" in docking pane keyboard navigation

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6500
Printed Date: 15 November 2024 at 9:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Crash/"bug" in docking pane keyboard navigation
Posted By: ABuenger
Subject: Crash/"bug" in docking pane keyboard navigation
Date Posted: 23 February 2007 at 1:06pm
The docking pane keyboard navigation does not work if a document can have more than 1 view.

In my case there may be 0 or up to 70 different views of the same document, as well as multiple documents. I use the tabbed MDI to switch between the different workspaces.

The document is created using CMyDocument::CreateObject because there is no initial view, so the m_pDocTemplate member is NULL.

In CXTPDockingPaneWindowSelect::OnPaint you are making the wrong assumption that every document was created from a template (pDocument->GetDocTemplate()->GetDocString), which result in a crash because GetDocTemplate returns NULL.

Also the keyboard navigation is quite useless if there are more than one view per document because you can't distinguish between the different views. The caption "Active Files" is also wrong in that case.

It would be great if you could check wheter a document has multiple views and then add the view caption to the items, i.e. "My file: My view". Or a flag that sets wheter to display the file name or view caption.

And last but not least the navigation popup doesn't look good with the SkinFramework.






-------------
Codejock support



Replies:
Posted By: ABuenger
Date Posted: 23 February 2007 at 5:01pm
CDocument::GetDocTemplate

Return Value: A pointer to the document template for this document type, or NULL if the document is not managed by a document template. 



-------------
Codejock support


Posted By: Oleg
Date Posted: 25 February 2007 at 12:25am

Hello, Thanks, yes you right.

I thought CDocument can be used only with DocTemplate.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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