Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <pgchart.h>
    void _FAR _pg_resetstyleset( void );

Description:
    The _pg_resetstyleset function resets the internal style-set of the
    presentation graphics system to default values.  The style-set is a set
    of line styles used for drawing window borders and grid-lines.

Returns:
    The _pg_resetstyleset function does not return a value.

Example:
    #include <graph.h>
    #include <pgchart.h>
    #include <string.h>
    #include <conio.h>

    #if defined ( __386__ )
        #define _FAR
    #else
        #define _FAR    __far
    #endif

    #define NUM_VALUES 4

    char _FAR *categories[ NUM_VALUES ] = {
        "Jan", "Feb", "Mar", "Apr"
    };

    float values[ NUM_VALUES ] = {
        20, 45, 30, 25
    };

    main()
    {
        chartenv env;
        styleset style;

        _setvideomode( _VRES16COLOR );
        _pg_initchart();
        _pg_defaultchart( &env,
                          _PG_COLUMNCHART, _PG_PLAINBARS );
        strcpy( env.maintitle.title, "Column Chart" );
        /* turn on yaxis grid, and use style 2 */
        env.yaxis.grid = 1;
        env.yaxis.gridstyle = 2;
        /* get default style-set and change entry 2 */
        _pg_getstyleset( &style );
        style[ 2 ] = 0x8888;
        /* use new style-set */
        _pg_setstyleset( &style );
        _pg_chart( &env, categories, values, NUM_VALUES );
        /* reset style-set to default */
        _pg_resetstyleset();
        getch();
        _setvideomode( _DEFAULTMODE );
    }

Classification:
    PC Graphics

Systems:
    DOS, QNX

See Also:
    _pg_defaultchart, _pg_initchart, _pg_chart, _pg_chartpie,
    _pg_chartscatter, _pg_getstyleset, _pg_setstyleset

See Also: _pg_defaultchart _pg_initchart

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson