SilverScreen Solid Modeler

set_qmessage_handler

set_qmessage_handler

Previous topic Next topic  

set_qmessage_handler

Previous topic Next topic JavaScript is required for the print function  

SilverPlusRect

SilverEngineRect

 

QMessageHandler set_qmessage_handler(QMessageHandler my_qmessage_handler);

 

 

 

 

 

 

 



 

Synopsis

#include "silver.h"

 

The set_qmessage_handler function defines a handler for SilverEngine status messages

 

 

Parameters

my_qmessage_handler is a SilverC API function pointer to a QMessageHandler that is called whenever there is a quick-message to display. A quick message is also called a status message and should be displayed immediately without entering a message loop.  It is declared as follows, and is only relevant in SilverPlus and SilverEngine development models.

 

typedef void SILVERC_API (SDCCALL *QMessageHandler)( char *text,

                                                    int fg_color,

                                                    int bg_color );

 

char *text;     /* The ANSI text of the quick message */

int  fg_color;  /* The desired character color of the quick message  */

int  bg_color;  /* The desired background color of the quick message */

 

 

Return Value

set_qmessage_handler returns a pointer to the active qmessage handler. Your handler should not return any value.

 

 

See Also

set_location_change_handler, set_show_error_handler, set_status_change_handler