From 3d8f2791c19b06796216a1778270819e7c0c538c Mon Sep 17 00:00:00 2001 From: Martin Willemoes Hansen Date: Fri, 1 Aug 2003 19:45:19 +0000 Subject: [PATCH] * /en/Gtk/MessageDialog.xml: Fixed remark. svn path=/trunk/gtk-sharp/; revision=16996 --- doc/ChangeLog | 4 +++ doc/en/Gtk/MessageDialog.xml | 53 ++++++++++++++++++------------------ 2 files changed, 30 insertions(+), 27 deletions(-) diff --git a/doc/ChangeLog b/doc/ChangeLog index 1daef7ac4..3f3455578 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2003-08-01 Martin Willemoes Hansen + + * /en/Gtk/MessageDialog.xml: Fixed remark. + 2003-08-01 John Luke * /en/*.xml: use C#-style names, ex Gdk instead of GDK diff --git a/doc/en/Gtk/MessageDialog.xml b/doc/en/Gtk/MessageDialog.xml index 0ff788224..85c096dab 100644 --- a/doc/en/Gtk/MessageDialog.xml +++ b/doc/en/Gtk/MessageDialog.xml @@ -10,36 +10,35 @@ Convenient message window - presents a with an image representing the (Error, Question, etc.) alongside some message text. - It's simply a convenience ; you could construct the equivalent of from without too much effort, but saves typing. - + presents a with an image representing the + (Error, Question, etc.) alongside some message text. + It's simply a convenience ; you could construct the equivalent of + from without too much effort, but + saves typing. + - The easiest way to do a modal message dialog is to use , - though you can also pass in the flag, automatically makes the from modal and waits for the user to respond to it. - returns when any in the is clicked. - - A modal dialog - + The MessageDialog is displayed using , which + automatically makes the from + modal and waits for the user to respond to it. + returns when any + in the is clicked. + + + A message dialog + -MessageDialog md = new MessageDialog - (parent_window, Gtk.DialogFlags.DestroyWithParent, - Gtk.MessageType.Error, Gtk.ButtonsType.Close, "Error loading file"); +MessageDialog md = new MessageDialog (parent_window, + DialogFlags.DestroyWithParent, + MessageType.Error, + ButtonsType.Close, "Error loading file"); -md.Run (); -md.Destroy (); - - - A non-modal dialog - - -MessageDialog md = new MessageDialog - (parent_window, Gtk.DialogFlags.DestroyWithParent, - Gtk.MessageType.Error, Gtk.ButtonsType.Close, "Error loading file"); - -// Destroy the dialog when the user responds to it (e.g. clicks a button) -// ::add signal handler code here:: - - +int result = md.Run (); + + + + + If you would like a non modal dialog just set the Modal property of the dialog, ie my_dialog.Modal = false; +