Tags:
create new tag
view all tags

.LINE INITIALIZE

This subroutine initializes a line on the "current" chart.


Usage:

      PASS         <line_spec_name>           FIELD            SHARE? N
      PASS         <start_x>                  FIELD            SHARE? N
      PASS         <start_y>                  FIELD            SHARE? N
      PASS         <end_x>                    FIELD            SHARE? N
      PASS         <end_y>                    FIELD            SHARE? N
      GOSUB    0CD .LINE INITIALIZE
      *        Check for error
      IF       0CD .LINE INITIALIZE           NE

Description:

This subroutine initializes (draws) a line on the "current" chart. If the named line exists, then initialization removes all the formatting from the specified line and everything is reset to defaults.

<line_spec_name> is a required parameter and the subroutine will cancel if it is not received. If the <line_spec_name> is blank, an error will be returned.

<line_spec_name> can be any name you want to assign to this line object (Required).

<start_x> is the X co-ordinate of the starting point of the line. This is required, and must be in the range 1-99999.

<start_y> is the Y co-ordinate of the starting point of the line. This is required, and must be in the range 1-99999.

<end_x> is the X co-ordinate of the ending point of the line. This is required, and must be in the range 1-99999.

<end_y> is the Y co-ordinate of the ending point of the line. This is required, and must be in the range 1-99999.

All co-ordinates are in pixels. The origin (0,0) is the upper left corner of your chart.

The default width is one pixel, and the default color is black. You can change the width and color using .LINE SET W or .LINE SET CLR.

The newly initialized line object is set to be the "current" line object.

Comments:

Read what other users have said about this page or add your own comments.


-- JeanNeron - 2012-02-17

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2012-02-19 - JeanNeron
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback