![]() |
Refactor CPropertySheet as CXTPDockingPane's? |
Post Reply
|
| Author | |
cjrobindch
Groupie
Joined: 29 July 2008 Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
cjrobindch
Groupie
Joined: 29 July 2008 Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
cjrobindch
Groupie
Joined: 29 July 2008 Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |