Class: Fox::FXInputDialog

Inherits:
FXDialogBox show all
Defined in:
rdoc-sources/FXInputDialog.rb

Overview

An FXInputDialog is a simple dialog which is used to obtain a text string, integer, or real number from the user. A "password" mode allows the key-in to remain hidden.

Input dialog options

INPUTDIALOG_STRING

Ask for a string

INPUTDIALOG_INTEGER

Ask for an integer number

INPUTDIALOG_REAL

Ask for a real number

INPUTDIALOG_PASSWORD

Do not reveal key-in

Instance Attribute Summary collapse

Attributes inherited from FXTopWindow

#decorations, #hSpacing, #icon, #miniIcon, #packingHints, #padBottom, #padLeft, #padRight, #padTop, #title, #vSpacing

Attributes inherited from FXWindow

#accelTable, #backColor, #defaultCursor, #dragCursor, #first, #focus, #key, #last, #layoutHints, #next, #numChildren, #owner, #parent, #prev, #root, #selector, #shell, #target, #x, #y

Attributes inherited from FXDrawable

#height, #visual, #width

Attributes inherited from FXId

#app, #userData, #xid

Instance Method Summary collapse

Methods inherited from FXDialogBox

#execute

Methods inherited from FXTopWindow

#close, #getWMBorders, #maximize, #maximized?, #minimize, #minimized?, #place, #restore, #show

Methods inherited from FXComposite

#maxChildHeight, #maxChildWidth

Methods inherited from FXWindow

#acceptDrop, #acquireClipboard, #acquireSelection, #active?, #addHotKey, #after?, #before?, #beginDrag, #canFocus?, #changeFocus, #childAtIndex, #childOf?, #children, #clearDragRectangle, #clearShape, #composeContext, #composite?, #contains?, #containsChild?, #create, #createComposeContext, #cursorPosition, #default?, #defaultHeight, #defaultWidth, #destroy, #destroyComposeContext, #detach, #didAccept, #disable, #doesSaveUnder?, #dragging?, #dropDisable, #dropEnable, #dropEnabled?, #dropFinished, #dropTarget?, #each_child, #each_child_recursive, #enable, #enabled?, #endDrag, #forceRefresh, #getChildAt, #getDNDData, #getHeightForWidth, #getWidthForHeight, #grab, #grabKeyboard, #grabbed?, #grabbedKeyboard?, #handleDrag, #hasClipboard?, #hasFocus?, #hasSelection?, #height, #height=, #hide, #inFocusChain?, #indexOfChild, #initial?, #inquireDNDAction, #inquireDNDTypes, #killFocus, #layout, #linkAfter, #linkBefore, #lower, #move, #offeredDNDType?, #position, #raiseWindow, #recalc, #releaseClipboard, #releaseSelection, #remHotKey, #removeChild, #repaint, #reparent, #resize, #scroll, #setCursorPosition, #setDNDData, #setDefault, #setDragRectangle, #setFocus, #setInitial, #setShape, #shell?, #show, #shown?, #tr, #translateCoordinatesFrom, #translateCoordinatesTo, #underCursor?, #ungrab, #ungrabKeyboard, #update, #visible=, #width, #width=

Methods included from Responder2

#connect

Methods inherited from FXDrawable

#resize

Methods inherited from FXId

#create, #created?, #destroy, #detach, #runOnUiThread

Methods inherited from FXObject

#bind, #handle, #load, #save, subclasses

Constructor Details

#initialize(owner, caption, label, icon = nil, opts = INPUTDIALOG_STRING, x = 0, y = 0, width = 0, height = 0) ⇒ FXInputDialog

Construct input dialog box with given caption, icon, and prompt text. If owner is a window, the dialog box will float over that window. If owner is the application, the dialog box will be free-floating.



27
28
# File 'rdoc-sources/FXInputDialog.rb', line 27

def initialize(owner, caption, label, icon=nil, opts=INPUTDIALOG_STRING, x=0, y=0, width=0, height=0) # :yields: theInputDialog
end

Instance Attribute Details

#numColumns ⇒ Object

Number of visible columns of text [Integer]



20
21
22
# File 'rdoc-sources/FXInputDialog.rb', line 20

def numColumns
  @numColumns
end

#text ⇒ Object

Input string [String]



17
18
19
# File 'rdoc-sources/FXInputDialog.rb', line 17

def text
  @text
end

Instance Method Details

#getLimits ⇒ Object

Return limits (a two-element array of floats).



41
# File 'rdoc-sources/FXInputDialog.rb', line 41

def getLimits(); end

#setLimits(lo, hi) ⇒ Object

Change limits (where lo and hi are numbers).



36
# File 'rdoc-sources/FXInputDialog.rb', line 36

def setLimits(lo, hi); end

#to_s ⇒ Object

Return the input dialog's input string text



31
# File 'rdoc-sources/FXInputDialog.rb', line 31

def to_s; text; end