View Raw SPL
/*****************************************************************************
*                                                                            *
*   GETXAUTOSCALE.SPL Copyright (C) 2018 DSP Development Corporation         *
*                               All Rights Reserved                          *
*                                                                            *
*   Author:      Randy Race                                                  *
*                                                                            *
*   Synopsis:    Gets window X autoscaling mode                              *
*                                                                            *
*   Revisions:   13 Jul 2018  RRR  Creation                                  *
*                                                                            *
*****************************************************************************/

#include 

#if @HELP_GETXAUTOSCALE

    GETXAUTOSCALE

    Purpose: Gets window X autoscaling mode

    Syntax:  GETXAUTOSCALE(win)

              win - Optional. A window, defaults to current window.

    Returns: An integer, 0, X autoscaling disabled or 1, X autoscaling enabled.

    Example:
             W1: gsin(1000,1/1000,4);setxautoscale(0);

             getxautoscale(w1)

             Returns 0, indicating X axis autoscaling is disabled.

    Remarks:
             GETXAUTOSCALE is useful for data in real time Windows.

    See Also:
             Rttinit
             Getautoscale
             Getyautoscale
             Setautoscale
             Setxautoscale
             Setyautoscale
#endif


/* return X autoscaling */
getxautoscale(win)
{
        local xauto;

        xauto = setxautoscale(win);

        return(xauto);
}