SilverScreen Solid Modeler



Previous topic Next topic  


Previous topic Next topic JavaScript is required for the print function  



void pm_box ( char *message, char *menu, char *buf )


char *message;     // prompt string

char *menu;        // menu string

char *buf;         // initial value




#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.




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





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

pm_box2 , pm_execute




C / C++ Code


 strcpy( buf, "left" );

 pm_box ( "Select view", "right left front rear", buf );