VrOne/Python Programming
|
ON-LINE REFERENCE DOCUMENTATION CARDINAL SYSTEMS, LLC 386-439-2525
|
Allows easy creation of parameter dialogs (Prompt
Boxes). More...
Creates a dialog box with
programmable entry fields (prompts) to allow entry of parameters. Fields are
laid out automatically with options for multiple columns and tabbed dialogs.
The dialog is built up using calls to Add… methods, it is then displays with
the Display method. The Display method returns 0 if the user pressed 0. After
the return from Display, the user-entered parameters can be queried using the
Get… methods. See testprombox.py for examples.
Class constructor
|
Title |
Title for window border. |
|
EditWidthChars |
Edit field width in characters. |
|
Modal |
Is box modal? (default=TRUE) |
Adds message to the top of the
prompt box. This is for user information
|
Message |
Message string. |
Adds an image to the top of the
prompt box.
|
ImgWidth |
Image width (pixels) |
|
ImgHeight |
Image height (pixels) |
|
ImgFileName |
Image file name with path. (can
be .bmp file). This is for user information |
Adds a dialog column after the
current item.
|
EditWidthChars |
Width of edit field in
characters. -1=Same as first column (default) |
Adds a new page resulting in a
tabbed dialog interface
|
Name |
Page name (shown on tab) |
|
Prompt |
Prompt string. |
|
Value |
Default value. |
|
Min |
Minimum allowed value (Optional) |
|
Max |
Maximum allowed value (Optional) |
Adds a prompt for an integer.
|
Prompt |
Prompt string. |
|
Value |
Default value. |
|
Min |
Minimum allowed value (Optional) |
|
Max |
Maximum allowed value (Optional) |
Adds a prompt for a double.
|
Prompt |
Prompt string. |
|
Value |
Default value. |
|
Decimal |
Number of decimal places to
display. |
|
Min |
Minimum allowed value
(Optional). |
|
Max |
Maximum allowed value (Optional). |
Adds a prompt for a string.
|
Prompt |
Prompt string. |
|
Value |
Default value. |
|
MaxChars |
Maximum number of characters
allowed. (up to 512) |
Adds a browse button to the
previous prompt.
|
BrowsePostfix |
File name postfix. (Example:
.dxf) |
|
BrowseDir |
Directory (default=NULL=Default
directory) |
|
BrowseType |
0=Save dialog (default) 1=Open
dialog (file must exist) 2=Directory (directory must exist) |
Sets the default browse path which
is used if the existing file name is NULL.
|
BrowsePath |
Browse path (64 char) |
Adds a combo box.
|
Prompt |
Prompt string. |
|
NumItems |
Number of items in combo box. |
|
DefaultItem |
Default item (0-18) |
|
EditFlag |
Are fields editable? |
Adds item to current combo box.
Use AddCombo to start combo box.
|
Strg |
String to add. |
Adds a list box. Use AddListItem
to add string items to list box.
|
Prompt |
Prompt string. |
|
NumItems |
Maximum number of items in combo
box. |
|
Height |
Height of list box (chars). |
|
DefaultItem |
Default item (0-NumItems-1) |
Adds item to current list box. Use
AddList to start list box.
|
Strg |
String to add. |
Adds a check box.
|
Prompt |
Prompt string. |
|
Checked |
Initial checked state (0=Not
checked, 1=checked) |
Adds a push button
|
Label |
Label for button |
Adds a color push button
|
Label |
Label for color button |
|
Color |
Integer representation of RGB
color |
Adds a label field. This may be
used to label a group of prompts
|
Label |
Label for button |
Adds a tool tip to the previous
prompt.
|
Strg |
ToolTip to add (any length) |
Adds a What's This to the previous
prompt.
|
Strg |
Whats this to add (any length) |
Set tab order number for previous
prompt.
|
TabNum |
Tab order number to set |
Enables/Disables the previous
prompt.
|
EnableFlag |
0 = Disable 1 = Enable (default) |
|
Item |
Item number (0-MAXPROMPTS) -1=Ok
button -2=Cancel button |
Enables/Disables editing for the
previous prompt.
|
EditFlag |
0 = Disable 1 = Enable (default) |
Hides/Shows an item.
|
Item |
Item number (0-MAXPROMPTS) -1=Ok
button -2=Cancel button |
|
HiddenFlag |
0 = Hide 1 = Show |
Sets focus to the previous prompt.
Clears a field to blank
|
Item |
Item number (0=first item). |
Changes the value of a previously
defined message
|
Message |
New message |
Changes the value of a previously
defined item.
|
Item |
Item number (0=first item). |
|
Value |
New value. |
Changes the value of a previously
defined item.
|
Prompt |
Prompt of item to change. |
|
Value |
New value. |
Changes the value of a previously
defined item.
|
Item |
Item number (0=first item). |
|
Value |
New value. |
|
WhatsThisValue |
New whats this value. (NULL if
no change) |
Changes the value of a previously
defined item.
|
Prompt |
Prompt of item to change. |
|
Value |
New value. |
|
WhatsThisValue |
New whats this value. (NULL if
no change) |
Changes the value of a previously
defined item.
|
Item |
Item number (0=first item). |
|
Value |
New value. |
Changes the value of a previously
defined item.
|
Prompt |
Prompt of item to change. |
|
Value |
New value. |
Changes the value of a previously
defined item.
|
Item |
Item number (0=first item). |
|
Value |
New value. (NULL if no change) |
|
WhatsThisValue |
New whats this value. (NULL if
no change) |
Changes the value of a previously
defined item.
|
Prompt |
Prompt of item to change. |
|
Value |
New value. (NULL if no change) |
|
WhatsThisValue |
New whats this value. (NULL if
no change) |
Changes the value of a previously
defined item.
|
Item |
Item number (0=first item). |
|
Value |
New value. |
Changes the value of a previously
defined item.
|
Prompt |
Prompt of item to change. |
|
Value |
New value. |
Changes the value of a previously
defined item.
|
Item |
Item number (0=first item). |
|
Value |
New value. |
Changes the value of a previously
defined item.
|
Prompt |
Prompt of item to change. |
|
Value |
New value. |
Changes the highlighted item in a
list box.
|
Item |
Item number (0=first item). |
|
Value |
String to hightlight |
Changes the highlighted item in a
list box.
|
Prompt |
Prompt of item to change. |
|
Value |
String to hightlight |
Changes the value of a previously
defined item.
|
Item |
Item number (0=first item). |
|
Checked |
Checked state (0=Not checked,
1=checked) |
Changes the value of a previously
defined item.
|
Prompt |
Prompt of item to change. |
|
Checked |
Checked state (0=Not checked,
1=checked) |
Changes a buttons label
|
Item |
Item number (0=first item). |
|
NewLabel |
New button label (0=No change) |
Changes a buttons label
|
Prompt |
Prompt of item to change. |
|
NewLabel |
New button label (0=No change) |
Changes a buttons label
|
Item |
Item number (0=first item). |
|
NewLabel |
New button label (0=No change) |
|
Color |
New button color |
Changes a buttons label
|
Prompt |
Prompt of item to change. |
|
NewLabel |
New button label (0=No change) |
|
Color |
New button color |
Changes a label
|
Item |
Item number (0=first item). |
|
NewLabel |
New label (0=No change) |
Get short item value. Search by
item number.
|
Item |
Item number (0=first item). |
|
|
returns |
(ret) |
|
|
|
ret |
Current value |
Get short item value. Search by
prompt.
|
Prompt |
Prompt of item to get. |
|
|
returns |
(ret) |
|
|
|
ret |
Current value |
Get integer item value. Search by
item number.
|
Item |
Item number (0=first item). |
|
|
returns |
(ret) |
|
|
|
ret |
Current value |
Get integer item value. Search by
prompt.
|
Prompt |
Prompt of item to get. |
|
|
returns |
(ret) |
|
|
|
ret |
Current value |
Get double item value. Search by
item number.
|
Item |
Item number (0=first item). |
|
|
returns |
(ret) |
|
|
|
ret |
Current value |
Get double item value. Search by prompt.
|
Prompt |
Prompt of item to get. |
|
|
returns |
(ret) |
|
|
|
ret |
Current value |
Get string item value. Search by
item number.
|
Item |
Item number (0=first item). |
|
|
returns |
(ret) |
|
|
|
ret |
Current value |
Get string item value. Search by
prompt.
|
Prompt |
Prompt of item to get. |
|
|
returns |
(ret) |
|
|
|
ret |
Current value |
Get combo item value. Search by
item number.
|
Item |
Item number (0=first item). |
|
|
returns |
(ret) |
|
|
|
ret |
Current value |
Get combo item value. Search by
prompt.
|
Prompt |
Prompt of item to get. |
|
|
returns |
(ret) |
|
|
|
ret |
Current value |
Get list item value. Search by item
number.
|
Item |
Item number (0=first item). |
|
|
returns |
(ret) |
|
|
|
ret |
Current value |
Get list item value. Search by
prompt.
|
Prompt |
Prompt of item to get. |
|
|
returns |
(ret) |
|
|
|
ret |
Current value |
Get checkbox item value. Search by
item number.
|
Item |
Item number (0=first item). |
Get checkbox item value. Search by
prompt.
|
Prompt |
Prompt of item to get. |
Get color button item value.
Search by item number.
|
Item |
Item number (0=first item). |
|
Prompt |
Prompt of item to get. |
Constructs and displays the dialog
box
|
WarpMouse |
||