Module Fox::FTNonModal
In: lib/fox16/execute_nonmodal.rb

Module to include in FXDialogBox to provide an easy nonmodal version of execute.

Methods

Public Class methods

Public Instance methods

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

Called when dialog is closed, with accepted equal to true if and only if the user accepted the dialog.

[Validate]