Attach form to client area |
Post Reply |
Author | |
idolpx
Newbie Joined: 24 February 2005 Status: Offline Points: 20 |
Post Options
Thanks(0)
Posted: 24 February 2005 at 3:28am |
How do you attach a form to the client area of a Docking Pane Manager?
I haven't found an example of how to do this. I've also had problems with the Resize event of the Docking Pane Manger. It doesn't seem to be firing. Any ideas? tia! |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
The form can be attached in the Attach event (See DockingPane samples,
this is none in both of them). If you are using both docking
panes and command bars, you can use the CommandBars_Resize event.
|
|
gshawn
Senior Member Joined: 04 October 2004 Status: Offline Points: 227 |
Post Options
Thanks(0)
|
The Resize event isn't firing for me either... Looks like this could be a "little problem." :)
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
So you have CommandBars on the same form? If "yes" than it is designed. must be CommandBars_Resize used. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
gshawn
Senior Member Joined: 04 October 2004 Status: Offline Points: 227 |
Post Options
Thanks(0)
|
That's right I had forgotten about this. The Resize event fires properly when I remove the CommandBars.Thanks for clarifying!
|
|
idolpx
Newbie Joined: 24 February 2005 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
I'll look in the samples. Do you recall what sample project showed an example of this? I am using CommandBars with the Docking Pane Manager. I will switch to using the CommandBars_Resize event. Thanks to all for your feedback.
Edited by idolpx |
|
ianp
Moderator Group Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
|
Both the DockingPanes samples (SDI and MDI) contains similar code in frmMain for the DockingPaneManager_AttachPane event.
Basically, create your dockingpanes in the form_load event. Once a pane is about to be displayed, the DockingPaneManager_AttachPane event is fired. Set the Item.Handle to the hWnd of the form/control which you wish to appear inside the docking pane |
|
idolpx
Newbie Joined: 24 February 2005 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
What you're describing is how to attach a form to a Docking Pane. I know how to do that. I want to attach a form to the Client Area of the Docking Pane Manager. I still haven't found an example for doing this. Any ideas? Thanks for the reply though. |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Can you maybe post a pictuer as to what you are trying to do?
What are calling the Client Area of the Docking Pane Manager?
|
|
idolpx
Newbie Joined: 24 February 2005 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
|
|
idolpx
Newbie Joined: 24 February 2005 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
Sorry so big... I should have shrunk it down some. The client area is the space around which a docking pane can dock. I want to dock a form there based on the users selections and the mode of the application. This will allow me to program all of the functionality of the different pieces of my app in different forms. Edited by idolpx |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
You don't attach a form to this area, the client area is the same form
that you dragged the docking pane manager on. See SDI Sample
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
In the SDI Sample it shows how to hide the client area if thats what
you want to know. Then you can put a pane there instead.
|
|
idolpx
Newbie Joined: 24 February 2005 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
That's a good idea. I'll try that. That pane will have to not allow grouping of other panes and I will need to remove it's title. It would be nice to be able to just do somthing like DockingPaneManager.ClientArea.Handle = MyForm.hWnd I used to use ActiveBar2 and that's kindof how it worked.
Edited by idolpx |
|
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 |