class Iup::MessageDialog

A predefined modal dialog used to display a message and requesting one of a constrained choice of responses.

Example

The following example shows off many of the features, setting up a question-type dialog with three buttons and a default response of “no”:

md = Iup::MessageDialog.new do |d|
  d.title = "Example MessageDialog" 
  d.dialogtype = 'question' 
  d.value = "Should we do this?"
  d.buttons = 'yesnocancel' 
  d.buttondefault = 2
end
md.popup 
puts "Clicked button is: #{md.buttonresponse}"

Note that popup must be used to show the dialog.

Also see: Iup.message