Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How to disable and enable back  docking feature of
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to disable and enable back docking feature of

 Post Reply Post Reply
Author
Message
DevDon View Drop Down
Newbie
Newbie


Joined: 12 June 2007
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote DevDon Quote  Post ReplyReply Direct Link To This Post Topic: How to disable and enable back docking feature of
    Posted: 13 June 2007 at 9:25am
 
How to disable and enable back  docking feature of  panes?
Is there any function available in 9.7 version ?
 
 
Developer~
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: 15 June 2007 at 5:01am
Hello,
 
Afraid Actions was added after 9.7 release. Check if you see PaneActions  sample.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
DevDon View Drop Down
Newbie
Newbie


Joined: 12 June 2007
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote DevDon Quote  Post ReplyReply Direct Link To This Post Posted: 10 July 2007 at 1:27pm
Thanks
Now have latest Toolkit Pro 11.1.3 version .
I am implementing it in SDI application
What function can I use to lock all panes . Expected action is pane will not float after double click on them . They will just stick with each other.
 
Please advise...
Developer~
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: 11 July 2007 at 12:09am
Hi,
 
In OnDockingPaneNotify add
 
if (wParam == XTP_DPN_ACTION)
 {
    XTP_DOCKINGPANE_ACTION* pAction = (XTP_DOCKINGPANE_ACTION*)lParam;
    pAction->bCancel = TRUE;
    return TRUE;
 }
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
DevDon View Drop Down
Newbie
Newbie


Joined: 12 June 2007
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote DevDon Quote  Post ReplyReply Direct Link To This Post Posted: 11 July 2007 at 12:05pm
Thanks .
I had old 9.7 version of code jock software now got recent 11.1.3 version .
I went through tutorial  .
Created sample MDI application .Tutorial says addthese lines to STDAFX header file
#include <XTToolkitPro.h> // Xtreme Toolkit Pro component library
#include <XTSuitePro.h> // Xtreme Suite component library
#include <XTDockingPanePro.h> // Xtreme Docking Pane component library
 
But when I compile It says Not able to find XTDockingPanePro.h and XTSuitePro.h files.
I searched it on my  machine , XTSuitePro.hwas not found at all .
 
But  XTDockingPanePro.h was found in old 9.7 version  docking pane folder .
 
Am I suppose to use XTDockingPanePro.h  from 9.7 /old version .?
And where can I find XTSuitePro.h file .
Please advise
Developer~
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: 12 July 2007 at 1:29am
Hello,
 
you only need
#include <XTToolkitPro.h>
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
DevDon View Drop Down
Newbie
Newbie


Joined: 12 June 2007
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote DevDon Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2007 at 9:54am
Thanks Oleg .....It worked fine with XTToolkitPro.h ..Perfect
 
But still wondering ....Why Helpfile in Help folder misguided ...to include  2 more files....anyway
 
 
Thank you very much for the help ...
 
Developer~
Back to Top
DevDon View Drop Down
Newbie
Newbie


Joined: 12 June 2007
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote DevDon Quote  Post ReplyReply Direct Link To This Post Posted: 19 July 2007 at 11:32am
hi Oleg                                                                                                            I used xtpPaneNoFloatable for setting options .
 
1. When user says docking view(my menu item ) I  pass this  xtpPaneNoFloatable  to setoption function and
2. When user doesn't want docking panes i set ~xtpPaneNoFloatable in set options .
 
I assume floatable means . when user click on and drag pane he can move it . With xtpPaneNoFloatable he should  not be able to drag it .
 
But the problem is when I say  xtpPaneNoFloatable  it still allows user to drag panes in application window ..
 
Would you Please show me how to make panes stick to each other parmanently . Which option can I set to make them undockable . and how?
 
Thanks
Developer~
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: 20 July 2007 at 2:49am
Hello,
 
xtpPaneNoFloatable  means that user can't float it - move outsize application and create external window.
 
You need Actions to prevent all dragging - see Samples\DockingPane\PaneActions
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.156 seconds.