SilverScreen Solid Modeler

pm_generic

pm_generic

Previous topic Next topic  

pm_generic

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void pm_generic ( char *message, char *buf, int type, char *extra_text )

 

char *message;    // prompt string

char *buf;        // character buffer to receive data

int   type;       // generic item type

char *extra_text; // extra text

 

 




Synopsis

#include "silver.h"

 

The pm_generic function adds a generic item prompt to the current panel, with prompt specified by message . buf must be initialized to an initial string value.

 

 

Parameters

message is a null-terminated string containing the prompt message. buf is the address of the buffer that is to receive the result. type specifies the generic data set type of data to collect. extra_text is an auxiliary string appropriate to type .

 

 

Return Value

none.

 

 

Comments

See the topic Generic data sets for more information on type and extra_text.

 

 

See Also

pm_execute, prompt_generic, collect_generic

 

 

Example

C / C++ Code

 

 char font_name[50];

 

 strcpy( font_name, "" );

 pm_generic ( "Select font", font_name, GN_FONT, "" );