Sha256: e8e08e269a28717973fe9fe5a4a21c9eb6d8ee0896de2f25a19ff951ac24181e

Contents?: true

Size: 1.12 KB

Versions: 43

Compression:

Stored size: 1.12 KB

Contents

module Fox
  #
  # Dialog box window.
  #
  # When a dialog box receives a +SEL_COMMAND+ message with identifier
  # +ID_CANCEL+ or +ID_ACCEPT+, the dialog box breaks out of the modal
  # loop and returns a completion code of either 0 or 1, respectively.
  #
  # To close a dialog box when it's not running modally, simply call
  # FXDialogBox#hide (or send it the +ID_HIDE+ command message).
  #
  # === Message identifiers
  #
  # +ID_CANCEL+::	Close the dialog, cancel the entry
  # +ID_ACCEPT+::	Close the dialog, accept the entry
  #
  class FXDialogBox < FXTopWindow
    #
    # Construct an empty dialog box.
    # If the _owner_ is an FXWindow instance, the dialog will always float over that window.
    # If the _owner_ is an FXApp instance, it will be a free-floating dialog.
    #
    def initialize(owner, title, opts=DECOR_TITLE|DECOR_BORDER, x=0, y=0, width=0, height=0, padLeft=10, padRight=10, padTop=10, padBottom=10, hSpacing=4, vSpacing=4) # :yields: theDialogBox
    end

    #
    # Run a modal invocation of the dialog, with specified initial _placement_.
    #
    def execute(placement=PLACEMENT_CURSOR); end
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
fxruby-1.6.22-x86-mingw32 rdoc-sources/FXDialogBox.rb
fxruby-1.6.22 rdoc-sources/FXDialogBox.rb
fxruby-1.6.22.pre4-x86-mingw32 rdoc-sources/FXDialogBox.rb
fxruby-1.6.22.pre4 rdoc-sources/FXDialogBox.rb
fxruby-1.6.22.pre3-x86-mingw32 rdoc-sources/FXDialogBox.rb
fxruby-1.6.22.pre3 rdoc-sources/FXDialogBox.rb
fxruby-1.6.22.pre2-x86-mingw32 rdoc-sources/FXDialogBox.rb
fxruby-1.6.22.pre2 rdoc-sources/FXDialogBox.rb
fxrubi-1.6.22.pre1-x86-mingw32 rdoc-sources/FXDialogBox.rb
fxrubi-1.6.22.pre1 rdoc-sources/FXDialogBox.rb
fxruby-1.6.20-x86-mingw32 rdoc-sources/FXDialogBox.rb
fxruby-1.6.20-x86-linux rdoc-sources/FXDialogBox.rb
fxruby-1.6.20 rdoc-sources/FXDialogBox.rb
fxruby-1.6.20-universal-darwin-10 rdoc-sources/FXDialogBox.rb
fxruby-1.6.19-x86-mingw32 rdoc-sources/FXDialogBox.rb
fxruby-1.6.14-mswin32 rdoc-sources/FXDialogBox.rb
fxruby-1.6.13-mswin32 rdoc-sources/FXDialogBox.rb
fxruby-1.6.10 rdoc-sources/FXDialogBox.rb
fxruby-1.6.11 rdoc-sources/FXDialogBox.rb
fxruby-1.6.12 rdoc-sources/FXDialogBox.rb