// Create a top-level dialog shell. public IToolkitWindow CreateTopLevelDialog (int width, int height, bool modal, bool resizable, IToolkitWindow dialogParent, IToolkitEventSink sink) { DrawingTopLevelWindow window; window = new DrawingTopLevelWindow (this, String.Empty, width, height, sink); /*if(dialogParent is TopLevelWindow) * { * window.TransientFor = (TopLevelWindow)dialogParent; * } * if(modal) * { * window.InputType = MotifInputType.ApplicationModal; * } * else * { * window.InputType = MotifInputType.Modeless; * } * if(!resizable) * { * window.Decorations = MotifDecorations.Border | * MotifDecorations.Title | * MotifDecorations.Menu; * window.Functions = MotifFunctions.Move | * MotifFunctions.Close; * }*/ AddWindow(window, dialogParent as DrawingWindow); window.CreateWindow(); return(window); }
// Create a form. public IToolkitTopLevelWindow CreateTopLevelWindow(int width, int height, IToolkitEventSink sink) { DrawingTopLevelWindow window = new DrawingTopLevelWindow(this, string.Empty, width, height, sink); AddWindow(window, null); window.CreateWindow(); return(window); }
// Create a top-level dialog shell. public IToolkitWindow CreateTopLevelDialog (int width, int height, bool modal, bool resizable, IToolkitWindow dialogParent, IToolkitEventSink sink) { DrawingTopLevelWindow window; window = new DrawingTopLevelWindow (this, String.Empty, width, height, sink); /*if(dialogParent is TopLevelWindow) { window.TransientFor = (TopLevelWindow)dialogParent; } if(modal) { window.InputType = MotifInputType.ApplicationModal; } else { window.InputType = MotifInputType.Modeless; } if(!resizable) { window.Decorations = MotifDecorations.Border | MotifDecorations.Title | MotifDecorations.Menu; window.Functions = MotifFunctions.Move | MotifFunctions.Close; }*/ AddWindow(window, dialogParent as DrawingWindow); window.CreateWindow(); return window; }
// Create a form. public IToolkitTopLevelWindow CreateTopLevelWindow(int width, int height, IToolkitEventSink sink) { DrawingTopLevelWindow window = new DrawingTopLevelWindow(this, string.Empty, width, height, sink); AddWindow(window, null); window.CreateWindow(); return window; }