Hello,
is there a way to modify the behavior of a dockable control, so that the control can only be docked on the right and/or left side of its parent MDI form ?
Thanks in advance
AD
Administrator
Syncfusion Team
February 7, 2005 03:28 PM UTC
Hi Guillem,
There is a way to control docking behavior, the DockAllow event. The following code snippet from the user''s guide demonstrates this:
// DockingManager.DockAllow event handler
private void dockingManager1_DockAllow(object sender, Syncfusion.Windows.Forms.Tools.DockAllowEventArgs arg)
{
// Disallow all controls from being docked to the host Form''s left border
if((arg.TargetControl == this) && (arg.DockStyle == Syncfusion.Windows.Forms.Tools.DockingStyle.Left))
arg.Cancel = true;
}
Hope this helps.
Regards,
Gregory Austin
Syncfusion, Inc.
SH
Stephan Hofmann
April 3, 2005 10:35 AM UTC
Hello,
the given solution before is not working if the docking manager property DockToFill is set to TRUE. Then, you will always get "Fill" as checking value which doesn''t make sense in this situation.
AD
Administrator
Syncfusion Team
April 4, 2005 04:58 PM UTC
Hi Stephan,
I''ve checked this in our latest version and didn''t notice the behavior you''ve described. I''d recommend upgrading when we release v3.2 later this week, as it fixes a number of issues with Docking.
Regards,
Gregory Austin
Syncfusion Inc.