Print Page | Close Window

Refactor CPropertySheet as CXTPDockingPane's?

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=18162
Printed Date: 19 June 2025 at 9:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Refactor CPropertySheet as CXTPDockingPane's?
Posted By: cjrobindch
Subject: Refactor CPropertySheet as CXTPDockingPane's?
Date Posted: 04 April 2011 at 12:29pm
hi -

I'm refactoring some pretty old code, currently working on porting over a CPropertySheet with a bunch of CPropertyPages and embedding them into our new CJ interface.  The CPropertySheet embeds fine, but the overall look and feel doesn't fit.  So I spent some time today playing around with each separate tab as a docked pane, but I couldn't seem to figure out how to make the panes stay within the docking panel (ie, the user can click and drag them out of the panel and dock them with other unrelated UI components).

How can I prevent the user docking these panes in other panels?  Or, alternatively, is there any simple way of embedding a propertysheet into a panel without the titlebar, external borders and other UI bits and pieces?

thanks.

(edited to remove screenshot)


-------------
Product: Xtreme Toolkit Pro 15.0.1
Platform: Windows 7 (32bit)
Language: Visual C++ 6.0



Replies:
Posted By: Oleg
Date Posted: 05 April 2011 at 4:03am
Try to use our CXTPPropertySheet / CXTPPropertyPage and removed WS_BORDER after you create it.

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


Posted By: cjrobindch
Date Posted: 05 April 2011 at 6:58am
Have tried removing WS_BORDER in OnCreate() and PreCreateWindow() (not called) for both the property sheet and property page, but the border stays put.

I'm inclined to think that a pane which can't acquire or lose tabs is the best way to go, but I'm having some difficulty in figuring out how to do this.


-------------
Product: Xtreme Toolkit Pro 15.0.1
Platform: Windows 7 (32bit)
Language: Visual C++ 6.0


Posted By: Oleg
Date Posted: 06 April 2011 at 2:38am
You can catch Docking action and cancel it.  check Samples\DockingPane\PaneActions 

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


Posted By: cjrobindch
Date Posted: 07 April 2011 at 9:07am
Thanks -- it's working fine now, with the exception that I can't quite figure out how to permit double-clicking on the docking panel title bar (to dock a full floating panel with 8 tabs), while stopping people double-clicking on the panel tabs and causing individual panels to dock away from the still-floating panel.  The message flows seem almost identical.  Not a major issue anyway.

thanks again for your help!


-------------
Product: Xtreme Toolkit Pro 15.0.1
Platform: Windows 7 (32bit)
Language: Visual C++ 6.0



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