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

Class Method Summary collapse

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?, after?, #before?, before?, #beginDrag, #canFocus?, #changeFocus, #childAtIndex, #childOf?, #children, #clearDragRectangle, #clearShape, colorType, colorTypeName, commonAncestor, #composeContext, #composite?, #contains?, #containsChild?, #create, #createComposeContext, #cursorPosition, #default?, #defaultHeight, #defaultWidth, deleteType, deleteTypeName, #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, imageType, #inFocusChain?, #indexOfChild, #initial?, #inquireDNDAction, #inquireDNDTypes, #killFocus, #layout, #linkAfter, #linkBefore, #lower, #move, octetType, octetTypeName, #offeredDNDType?, #position, #raiseWindow, #recalc, #releaseClipboard, #releaseSelection, #remHotKey, #removeChild, #repaint, #reparent, #resize, #scroll, #setCursorPosition, #setDNDData, #setDefault, #setDragRectangle, #setFocus, #setInitial, #setShape, #shell?, #show, #shown?, stringType, textType, textTypeName, #tr, #translateCoordinatesFrom, #translateCoordinatesTo, #underCursor?, #ungrab, #ungrabKeyboard, #update, urilistType, urilistTypeName, utf16Type, utf16TypeName, utf8Type, utf8TypeName, #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

#numColumnsObject

Number of visible columns of text [Integer]



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

def numColumns
  @numColumns
end

#textObject

Input string [String]



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

def text
  @text
end

Class Method Details

.getInteger(initial, app, caption, label, ic = nil, lo = -2147483647,, hi = 2147483647) ⇒ Object

Prompt for an integer, in a free-floating window..



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

def FXInputDialog.getInteger(initial, owner, caption, label, ic=nil, lo=-2147483647, hi=2147483647); end

.getReal(initial, owner, caption, label, ic = nil, lo = -1.797693134862315e+308,, hi = 1.797693134862315e+308) ⇒ Object

Prompt for a real number, in a free-floating window..



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

def FXInputDialog.getReal(initial, owner, caption, label, ic=nil, lo=-1.797693134862315e+308, hi=1.797693134862315e+308); end

.getString(initial, app, caption, label, ic = nil) ⇒ Object

Prompt for a string, in a free-floating window..



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

def FXInputDialog.getString(initial, owner, caption, label, ic=nil); end

Instance Method Details

#getLimitsObject

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_sObject

Return the input dialog’s input string text



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

def to_s; text; end