UIIndex.gif Previous-2.gif Next-3.gif

UIpromptBox


Synopsis

prompt a user for text input

UIdialog UIpromptBox<inst_func="UIpromptBoxInstance"> {
string+IPort2 prompt;
string+OPort2 text;
int applyButton;
string applyLabelString;
};

Description

UIpromptBox is a dialog that prompts the user for text input. The value of OK (from UIdialog) can determine if a user accepts the current value in the text attribute.

This dialog can have only one child.

Subobjects

message

UIdecorContainer class attribute.

x; y;
width; height;

UIGeom class attributes.

clientWidth; clientHeight

UIdecorGeom class attributes

* parent;
grouptoParent;
&cursor;
events <Not visible in Network Editor>;

UIwindow class attributes

shellParent <Not visible in Network Editor>;
canHaveChildren <Not visible in Network Editor> =0

UIConnection class attributes inherited from UIwindow.

&visible=0;
&active;
pixmap;
color;
fontAttribute;
fontlist <No longer used. Not visible in Network Editor>;
cxxhandle <Internal Object. Not visible in Network Editor>;
handle <Internal Object. Not visible in Network Editor>;
motif_resources <No longer used. Not visible in Network Editor>;
window_resources <No longer used. Not visible in Network Editor>;
layout <No longer used. Not visible in Network Editor>

Attributes inherited from UIcore class through UIwindow.

title;
isModal;
autoUnmanage;
destroyOnUnmanage;
ok;
cancel;
okButton;
okLabelString;
cancelButton;
cancelLabelString;
display

Attributes inherited from UIdialog.

prompt

(String. IPort2) Sets text of query to user.

text

(String.OPort2) Sets the text value that is offered to the user or the value that the user enters instead.

This subobject is read/write.

applyButton

(Integer). The applyButton works like an OK button except the dialog remains after the button is pressed. 0=not visible; 1=visible.

applyLabelString

(String). Sets the text on the applyButton.

Example

Examples.Applications.UIApp
examples/ui_samp.v

File

v/UI.v

See Also

Related modules:

•      UIdialog

•      UIfileDialog

•      UImessageBox

•      UIsliderUnbnd

 



UIIndex.gif Previous-2.gif Next-3.gif