Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Refactor CPropertySheet as CXTPDockingPane's?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Refactor CPropertySheet as CXTPDockingPane's?

 Post Reply Post Reply
Author
Message
cjrobindch View Drop Down
Groupie
Groupie


Joined: 29 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote cjrobindch Quote  Post ReplyReply Direct Link To This Post Topic: Refactor CPropertySheet as CXTPDockingPane's?
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
cjrobindch View Drop Down
Groupie
Groupie


Joined: 29 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote cjrobindch Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
cjrobindch View Drop Down
Groupie
Groupie


Joined: 29 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote cjrobindch Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.059 seconds.