[Gtk-sharp-list] Accept button andcancel button for gtk#?

White Spirit wspirit at homechoice.co.uk
Mon Dec 4 19:35:55 EST 2006

Carlos Adriano Portes wrote:

> Whats the simple way of doing it in a dialog?

If you're using the MessageDialog class, it would be something like:

MessageDialog dialogue = new MessageDialog (w, 
DialogFlags.DestroyWithParent, MessageType.Question, ButtonsType.YesNo, 
"Yes or No?");
ResponseType response = (ResponseType) dialogue.Run();

I can't access the documentation at the moment, but look at the class 
and check the links to ButtonsType.

More information about the Gtk-sharp-list mailing list