SilverScreen Solid Modeler

pm_execute

pm_execute

Previous topic Next topic  

pm_execute

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

int pm_execute ( void )

 

 

 

 

 




Synopsis

#include "silver.h"

 

The pm_execute function displays the current panel (as initialized by pm_initialize) and permits the user to modify any values that appear in the panel. Mandatory items will be entered first. Upon return from the panel, all values that have been modified by the user will be updated. This updating will occur regardless of whether a 1 or a 0 is returned by pm_execute .

 

 

Parameters

none

 

 

Return Value

If the user concludes his activities by pressing the "OK" button, then 1 is returned. If the "Cancel" button is pressed, then 0 is returned.

 

 

See Also

pm_initialize

 

 

Example

An example showing construction and display of a panel:

C / C++ Code

 

 int orientation, color;

 double width;

 

 pm_initialize ( "Print Layout", "" );

 width = 8.0;

 pm_double ( "Width", &width )

 

 orientation = 1;

 pm_menu ( "Orientation", "Landscape Portrait", &orientation );

 

 border_color = color_brown;

 pm_color ( "Color of border", &border_color );

 

 if ( pm_execute () )

    {

    // User terminated by pressing "OK"

    }

 else

    {

    // User terminated by pressing "Cancel"

    }