An Input Dialog is a simple dialog which is used to obtain a text string, integer, or real number from the user.
Inheritance:
Public Methods
-
FXInputDialog(FXWindow* owner, const FXString& caption, const FXString& label, FXIcon* ic=NULL, FXuint opts=INPUTDIALOG_STRING, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
- Construct input dialog box with given caption, icon, and prompt text
-
FXString getText() const
- Get input string
-
void setText(const FXString& text)
- Set input string
-
void setNumColumns(FXint num)
- Change number of visible columns of text
-
FXint getNumColumns() const
- Return number of visible columns of text
-
void setLimits(FXdouble lo, FXdouble hi)
- Change limits
-
void getLimits(FXdouble& lo, FXdouble& hi)
- Return limits
-
virtual FXuint execute(FXuint placement=PLACEMENT_CURSOR)
- Run modal invocation of the dialog
-
static FXbool getString(FXString& result, FXWindow* owner, const FXString& caption, const FXString& label, FXIcon* ic=NULL)
- Prompt for a string, start with the initial value.
-
static FXbool getInteger(FXint& result, FXWindow* owner, const FXString& caption, const FXString& label, FXIcon* ic=NULL, FXint lo=1, FXint hi=0)
- Prompt for an integer number, start with the given initial value.
-
static FXbool getReal(FXdouble& result, FXWindow* owner, const FXString& caption, const FXString& label, FXIcon* ic=NULL, FXdouble lo=1.0, FXdouble hi=0.0)
- Prompt for an real number, start with the given initial value.
Public Methods
-
virtual void create()
-
virtual void detach()
-
virtual void setFocus()
-
virtual void killFocus()
-
virtual void show()
-
virtual void hide()
-
virtual void show(FXuint placement)
-
void place(FXuint placement)
-
virtual FXint getDefaultWidth()
-
virtual FXint getDefaultHeight()
-
virtual void move(FXint x, FXint y)
-
virtual void resize(FXint w, FXint h)
-
virtual void position(FXint x, FXint y, FXint w, FXint h)
-
virtual void iconify()
-
virtual void deiconify()
-
FXbool isIconified() const
-
void setTitle(const FXString& name)
-
FXString getTitle() const
-
void setPadTop(FXint pt)
-
FXint getPadTop() const
-
void setPadBottom(FXint pb)
-
FXint getPadBottom() const
-
void setPadLeft(FXint pl)
-
FXint getPadLeft() const
-
void setPadRight(FXint pr)
-
FXint getPadRight() const
-
FXint getHSpacing() const
-
FXint getVSpacing() const
-
void setHSpacing(FXint hs)
-
void setVSpacing(FXint vs)
-
void setPackingHints(FXuint ph)
-
FXuint getPackingHints() const
-
void setDecorations(FXuint decorations)
-
FXuint getDecorations() const
-
FXIcon* getIcon() const
-
void setIcon(FXIcon* ic)
-
FXIcon* getMiniIcon() const
-
void setMiniIcon(FXIcon* ic)
-
virtual void save(FXStream& store) const
-
virtual void load(FXStream& store)
Inherited from FXShell:
Public Methods
-
virtual void recalc()
Public Methods
-
virtual void destroy()
-
FXint maxChildWidth() const
-
FXint maxChildHeight() const
-
virtual FXbool isComposite() const
Public Methods
-
FXWindow* getParent() const
-
FXWindow* getOwner() const
-
FXWindow* getShell() const
-
FXWindow* getRoot() const
-
FXWindow* getNext() const
-
FXWindow* getPrev() const
-
FXWindow* getFirst() const
-
FXWindow* getLast() const
-
FXWindow* getFocus() const
-
void setKey(FXuint k)
-
FXuint getKey() const
-
void setTarget(FXObject* t)
-
FXObject* getTarget() const
-
void setSelector(FXSelector sel)
-
FXSelector getSelector() const
-
FXint getX() const
-
FXint getY() const
-
virtual FXint getWidthForHeight(FXint givenheight)
-
virtual FXint getHeightForWidth(FXint givenwidth)
-
void setX(FXint x)
-
void setY(FXint y)
-
void setWidth(FXint w)
-
void setHeight(FXint h)
-
void setLayoutHints(FXuint lout)
-
FXuint getLayoutHints() const
-
FXAccelTable* getAccelTable() const
-
void setAccelTable(FXAccelTable* acceltable)
-
void addHotKey(FXHotKey code)
-
void remHotKey(FXHotKey code)
-
FXbool isShell() const
-
FXbool isChildOf(const FXWindow* window) const
-
FXbool containsChild(const FXWindow* child) const
-
FXWindow* getChildAt(FXint x, FXint y) const
-
FXint numChildren() const
-
FXint indexOfChild(const FXWindow* window) const
-
FXWindow* childAtIndex(FXint index) const
-
static FXWindow* commonAncestor(FXWindow* a, FXWindow* b)
-
void setDefaultCursor(FXCursor* cur)
-
FXCursor* getDefaultCursor() const
-
void setDragCursor(FXCursor* cur)
-
FXCursor* getDragCursor() const
-
FXint getCursorPosition(FXint& x, FXint& y, FXuint& buttons) const
-
FXint setCursorPosition(FXint x, FXint y)
-
FXbool isEnabled() const
-
FXbool isActive() const
-
virtual FXbool canFocus() const
-
FXbool hasFocus() const
-
virtual void setDefault(FXbool enable=TRUE)
-
FXbool isDefault() const
-
void setInitial(FXbool enable=TRUE)
-
FXbool isInitial() const
-
virtual void enable()
-
virtual void disable()
-
virtual void raise()
-
virtual void lower()
-
void forceRefresh()
-
virtual void reparent(FXWindow* newparent)
-
void scroll(FXint x, FXint y, FXint w, FXint h, FXint dx, FXint dy)
-
void update(FXint x, FXint y, FXint w, FXint h)
-
void update()
-
void repaint(FXint x, FXint y, FXint w, FXint h)
-
void repaint()
-
void grab()
-
void ungrab()
-
FXbool grabbed() const
-
void grabKeyboard()
-
void ungrabKeyboard()
-
FXbool grabbedKeyboard() const
-
FXbool shown() const
-
FXbool underCursor() const
-
FXbool hasSelection() const
-
FXbool acquireSelection(const FXDragType* types, FXuint numtypes)
-
FXbool releaseSelection()
-
FXbool hasClipboard() const
-
FXbool acquireClipboard(const FXDragType* types, FXuint numtypes)
-
FXbool releaseClipboard()
-
void dropEnable()
-
void dropDisable()
-
FXbool isDropEnabled() const
-
FXbool isDragging() const
-
FXbool beginDrag(const FXDragType* types, FXuint numtypes)
-
FXbool handleDrag(FXint x, FXint y, FXDragAction action=DRAG_COPY)
-
FXbool endDrag(FXbool drop=TRUE)
-
FXbool isDropTarget() const
-
void setDragRectangle(FXint x, FXint y, FXint w, FXint h, FXbool wantupdates=TRUE)
-
void clearDragRectangle()
-
void acceptDrop(FXDragAction action=DRAG_ACCEPT)
-
FXDragAction didAccept() const
-
FXbool inquireDNDTypes(FXDNDOrigin origin, FXDragType*& types, FXuint& numtypes)
-
FXbool offeredDNDType(FXDNDOrigin origin, FXDragType type)
-
FXDragAction inquireDNDAction() const
-
FXbool setDNDData(FXDNDOrigin origin, FXDragType type, FXuchar* data, FXuint size)
-
FXbool getDNDData(FXDNDOrigin origin, FXDragType type, FXuchar*& data, FXuint& size)
-
virtual FXbool contains(FXint parentx, FXint parenty) const
-
void translateCoordinatesFrom(FXint& tox, FXint& toy, const FXWindow* fromwindow, FXint fromx, FXint fromy) const
-
void translateCoordinatesTo(FXint& tox, FXint& toy, const FXWindow* towindow, FXint fromx, FXint fromy) const
-
virtual void setBackColor(FXColor clr)
-
FXColor getBackColor() const
-
void linkBefore(FXWindow* sibling)
-
void linkAfter(FXWindow* sibling)
Public Methods
-
FXint getWidth() const
-
FXint getHeight() const
-
FXVisual* getVisual() const
-
void setVisual(FXVisual* vis)
Inherited from FXId:
Public Methods
-
FXApp* getApp() const
-
FXID id() const
-
void setUserData(void* ptr)
-
void* getUserData() const
Public Methods
-
const FXchar* getClassName() const
-
FXbool isMemberOf(const FXMetaClass* metaclass) const
Documentation
An Input Dialog 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.
- FXInputDialog(FXWindow* owner, const FXString& caption, const FXString& label, FXIcon* ic=NULL, FXuint opts=INPUTDIALOG_STRING, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
- Construct input dialog box with given caption, icon, and prompt text
- FXString getText() const
- Get input string
- void setText(const FXString& text)
- Set input string
- void setNumColumns(FXint num)
- Change number of visible columns of text
- FXint getNumColumns() const
- Return number of visible columns of text
- void setLimits(FXdouble lo, FXdouble hi)
- Change limits
- void getLimits(FXdouble& lo, FXdouble& hi)
- Return limits
- virtual FXuint execute(FXuint placement=PLACEMENT_CURSOR)
- Run modal invocation of the dialog
- static FXbool getString(FXString& result, FXWindow* owner, const FXString& caption, const FXString& label, FXIcon* ic=NULL)
-
Prompt for a string, start with the initial value.
Return TRUE if the new value is accepted, and false otherwise.
- static FXbool getInteger(FXint& result, FXWindow* owner, const FXString& caption, const FXString& label, FXIcon* ic=NULL, FXint lo=1, FXint hi=0)
-
Prompt for an integer number, start with the given initial value.
Return TRUE if the new value is accepted, and false otherwise.
The input is constrained between lo and hi, unless lo>hi, in which
case the input can be any number.
- static FXbool getReal(FXdouble& result, FXWindow* owner, const FXString& caption, const FXString& label, FXIcon* ic=NULL, FXdouble lo=1.0, FXdouble hi=0.0)
-
Prompt for an real number, start with the given initial value.
Return TRUE if the new value is accepted, and false otherwise.
The input is constrained between lo and hi, unless lo>hi, in which
case the input can be any number.
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.