class Iup::ProgressDialog

A predefined dialog to show the progress of an operation. It is often used alongside a Iup::Timer, which triggers updates at regular intervals.

Example

dlg = Iup::ProgressDialog.new do |d|
  d.title = "Progress on task ..."
  d.description = "... taking a long time"
  d.totalcount = 100
  d.count = 30
  d.cancel_cb = ->{
    puts "Task cancelled"
    Iup::CLOSE
  }
end
dlg.show

The dialog is meant to be shown using show.