|
||
void pm_box ( char *message, char *menu, char *buf )
char *message; // prompt string char *menu; // menu string char *buf; // initial value
|
|
|||
Synopsis |
#include "silver.h"
The pm_box function adds a menu to the current panel. The prompt string is specified by message . The menu parameter specifies the menu items, a list space-delimited keywords (for example, "left right top bottom"). The buf parameter specifies the default selection, which must match one of the keywords in menu . After pm_execute , buf will be set to the string in menu selected by the user.
|
|
||
Parameters |
message is a null-terminated string containing the prompt message. menu is a null-terminated string containing the menu items. buf contains a null-terminated string designating the default selection, and which will receive the selected value.
|
|
||
Return Value |
none.
|
|
||
Comments |
In the panel, a menu will display only the current setting. A button will appear to the left of the item. When the user selects this item, a selection panel will appear containing all menu items in the panel. (If the menu has only two items, a toggle button will appear).
|
|
||
See Also |
|
|
||
Example |
|
|
||
|
|