[Gtk-sharp-list] gtk message dialog yes/no set focus button yes monodevelop

salvadorRenato renato at star2.com.br
Mon Jan 30 19:56:19 UTC 2017


I am creating a messagedialog with button type yesNo
But it starts as the button in the selected, I would like to put the button
yes set focus default.

How can this be done?

Example code

MessageDialog md1 = new MessageDialog (null, DialogFlags.Modal,
MessageType.Info, ButtonsType.YesNo,"Registrar Item? ");

			ResponseType response = (ResponseType)md1.Run ();

			md1.Show ();

			if (response == ResponseType.No) {                  
				md1.Destroy ();

View this message in context: http://mono.1490590.n4.nabble.com/gtk-message-dialog-yes-no-set-focus-button-yes-monodevelop-tp4669869.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

More information about the Gtk-sharp-list mailing list