Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - [Closed] How - oh How?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Closed] How - oh How?

 Post Reply Post Reply
Author
Message
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Topic: [Closed] How - oh How?
    Posted: 03 August 2006 at 6:53am
I have many panes in my MDI application, 6 of which are instances the same dialog.

My wish: how do only allow these 6 identical dialogs to be docked inside of each other, not inside the CMainFrame, not inside other dialogs?

What I want is the appearance of all 6 docked together, floating around and not dockable inside anything else. Appearance is one dialog but with 6 tabs allowing the user to select the desired instance.

(I hope you understand this.)

Next - how do I stop a floating pane from being resizable? I guess this is in the docs, I expect I'll see this later today.
Simon HB9DRV
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: 03 August 2006 at 7:41am
Hi, catch actions event and xtpPaneActionDetaching and cancel it.  See PaneActions sample.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2006 at 8:13am
Originally posted by oleg oleg wrote:

Hi, catch actions event and xtpPaneActionDetaching and cancel it.  See PaneActions sample.

Thanks, will do.

With luck I'll have this programmed up later today / tomorrow, no doubt I'll be back :-)
Simon HB9DRV
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2006 at 12:01pm
Hi Oleg,

If I try to dock a pane, how do I find out where the user is trying to dock? For example, I have a dialog attached to pane IDR_PANE_1 and I want to know if the user is trying to dock this dialog into the pane IDR_PANE_2.

I only want the user to be able to dock inside specific panes. I have the ID of the pane being docked pAction->pPane->GetID() but not the target pane.
Simon HB9DRV
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2006 at 12:21pm
Oleg,

I have abonded my idea here - please don't reply :=)
Simon HB9DRV
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.171 seconds.