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/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <pgchart.h>
    void _FAR _pg_setstyleset( unsigned short _FAR *style );

Description:
    The _pg_setstyleset function retrieves the internal style-set of the
    presentation graphics system.  The style-set is a set of line styles
    used for drawing window borders and grid-lines.  The argument style is
    an array containing the new style-set.

Returns:
    The _pg_setstyleset function does not return a value.

See Also:
    _pg_defaultchart, _pg_initchart, _pg_chart, _pg_chartms, _pg_chartpie,
    _pg_chartscatter, _pg_chartscatterms, _pg_getstyleset, _pg_resetstyleset

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

    #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

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