Esempio n. 1
0
        // Lay out the children in this MDI client.
        public void LayoutMdi(MdiLayout value)
        {
            IToolkitMdiClient mdi = (toolkitWindow as IToolkitMdiClient);

            if (mdi != null)
            {
                switch (value)
                {
                case MdiLayout.Cascade:
                {
                    mdi.Cascade();
                }
                break;

                case MdiLayout.TileHorizontal:
                {
                    mdi.TileHorizontally();
                }
                break;

                case MdiLayout.TileVertical:
                {
                    mdi.TileVertically();
                }
                break;

                case MdiLayout.ArrangeIcons:
                {
                    mdi.ArrangeIcons();
                }
                break;
                }
            }
        }
Esempio n. 2
0
        IToolkitTopLevelWindow InternalCreateMdiChildWindow(Control control, IToolkitMdiClient mdiClient, int x, int y, int w, int h)
        {
            // be ThreadSafe
            if (IsInvokeRequired)
            {
                return((IToolkitTopLevelWindow)Invoke(
                           new DelegateCreateMdiChildWindow(this.InternalCreateMdiChildWindow),
                           new object[] { control, mdiClient, x, y, w, h }
                           ));
            }

            return(mdiClient.CreateChildWindow(x, y, w, h, new ControlWeakRef(control)));
        }
	IToolkitTopLevelWindow InternalCreateMdiChildWindow( Control control, IToolkitMdiClient mdiClient, int x, int y, int w, int h ) 
	{
		// be ThreadSafe
		if( IsInvokeRequired ) {
			return (IToolkitTopLevelWindow) Invoke( 
					new DelegateCreateMdiChildWindow( this.InternalCreateMdiChildWindow), 
					new object[] { control, mdiClient, x, y, w, h } 
				);
		}
		
		return mdiClient.CreateChildWindow(x,y,w,h, new ControlWeakRef(control) );
	}
	internal static IToolkitTopLevelWindow CreateMdiChildWindow(Control control, IToolkitMdiClient mdiClient, int x, int y, int w, int h )
	{
		return Instance.InternalCreateMdiChildWindow( control, mdiClient, x,y,w,h );
	}
Esempio n. 5
0
 internal static IToolkitTopLevelWindow CreateMdiChildWindow(Control control, IToolkitMdiClient mdiClient, int x, int y, int w, int h)
 {
     return(Instance.InternalCreateMdiChildWindow(control, mdiClient, x, y, w, h));
 }