Example #1
0
        // Create a child window.  If "parent" is null, then the child
        // does not yet have a "real" parent - it will be reparented later.
        public IToolkitWindow CreateChildWindow
            (IToolkitWindow parent, int x, int y, int width, int height,
            IToolkitEventSink sink)
        {
            DrawingWindow dparent;

            if (parent is DrawingWindow)
            {
                dparent = ((DrawingWindow)parent);
            }
            else
            {
                dparent = null;
            }
            DrawingWindow window = new DrawingControlWindow(this, "", dparent, x, y, width, height, sink);

            AddWindow(window, parent as DrawingWindow);
            window.CreateWindow();
            return(window);
        }
	// Create a child window.  If "parent" is null, then the child
	// does not yet have a "real" parent - it will be reparented later.
	public IToolkitWindow CreateChildWindow
		(IToolkitWindow parent, int x, int y, int width, int height,
		IToolkitEventSink sink)
	{
		DrawingWindow dparent;
		if(parent is DrawingWindow)
		{
			dparent = ((DrawingWindow)parent);
		}
		else
		{
			dparent = null;
		}
		DrawingWindow window = new DrawingControlWindow(this, "", dparent, x, y, width, height, sink);
		AddWindow(window, parent as DrawingWindow);
		window.CreateWindow();
		return window;
	}