|
||
void pm_formatted ( char *message, double *value, int mandatory, int units, int notation )
char *message; // prompt string double *value; // address of double to receive result int mandatory; // mandatory entry flag int units; // unit of measurement selector int notation; // notation selector
|
|
|||||||||||||||||||||||||||
Synopsis |
#include "silver.h"
The pm_formatted function adds a formatted double prompt to the current panel, with prompt specified by message . The value will be displayed on the panel according to units and notation . (see format_double) If mandatory is 1, a value must be entered for the item. If mandatory is 0, then the initial value can be accepted without change. After pm_execute , the resulting value is returned in value .
|
|
||||||||||||||||||||||||||
Parameters |
message is a null-terminated string containing the prompt message. value is the address of a double that is to receive the result of the prompt. mandatory is an integer specifying whether entry for this field is mandatory or not. notation is one of the following values (defined in silver.h):
units may be one of the following (defined in silver.h)
|
|
||||||||||||||||||||||||||
Return Value |
none.
|
|
||||||||||||||||||||||||||
See Also |
|
|
||||||||||||||||||||||||||
Example |
|
|
||||||||||||||||||||||||||
|
|