SilverScreen Solid Modeler

pm_box2

pm_box2

Previous topic Next topic  

pm_box2

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void pm_box2 ( char *message, char *menu, int *selection )

 

char *message;    // prompt string

char *menu;       // menu string

int  *selection;  // address of integer to receive menu selection number

 

 




Synopsis

#include "silver.h"

 

The pm_box2 function identical to pm_box except that selection specifies the item number of the default item initially selected in the menu. After pm_execute , setting will contain the number of item that was selected, from 1 to the number of items in menu .

 

 

Parameters

message is a null-terminated string containing the prompt message. menu is a null-terminated string containing the menu items. selection is the address of the integer that is to receive the item number corresponding to the selected menu item; it will be a value between 1 and the number of items on the menu.

 

 

Return Value

none.

 

 

Comments

The initial value for the field is the initial value of the integer pointed to by selection .

 

 

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_box , pm_execute

 

 

Example

C / C++ Code

 

 i = 2;

 pm_box2 ( "Select view", "right left front rear", &i );