SilverScreen Solid Modeler

pm_rgb

pm_rgb

Previous topic Next topic  

pm_rgb

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void pm_rgb ( char *message, char *buf )

 

char *message;        // prompt string

char *buf;        // character buffer to receive RGB string

 

 




Synopsis

#include "silver.h"

 

The pm_rgb function adds a prompt for an RGB string to the current panel, with prompt specified by message . When the panel is displayed, a button will permit the user to use any of the color selection facilities to select a color. After pm_execute , buf will contain the resulting string. If properly formatted, the string can be converted to RGB values (see text_to_rgb).

 

 

Parameters

message is a null-terminated string containing the prompt message. buf is the address of a character buffer that is to receive the character string.

 

 

Return Value

none.

 

 

See Also

pm_execute, text_to_rgb

 

 

Example

C / C++ Code

 

 char rgb_txt[40];

 

 strcpy( rgb_txt, "r127g127g127" );

 pm_rgb ( "Wall color", rgb_txt );