| Module | Fox::FTNonModal |
| In: |
lib/fox16/execute_nonmodal.rb
|
Module to include in FXDialogBox to provide an easy nonmodal version of execute.
Creates and shows the dialog, and registers the associated block to be called when the dialog is closed. The block is passed a boolean argument which is true if and only if the dialog was accepted.
For example:
dialogBox.execute_modal do |accepted|
if accepted
puts "Dialog accepted"
else
puts "Dialog cancelled"
end
Creates and shows the dialog, and registers the associated block to be called when the dialog is closed. The block is passed a boolean argument which is true if and only if the dialog was accepted.
For example:
dialogBox.execute_nonmodal do |accepted|
if accepted
puts "Dialog accepted"
else
puts "Dialog cancelled"
end