Top
NetCOBOL V11.0 CBL Subroutines User's Guide
FUJITSU Software

12.8 CBL_SET_MOUSE_POSITION

This routine moves the mouse cursor to the specified position on the screen.

Specification

Parameter data definition
01 mouse-handle        PIC X(4).
01 mouse-cursor-position.
   02 line-position    PIC 9(4) BINARY.
   02 column-position  PIC 9(4) BINARY.
01 status-code         PIC S9(4) COMP-5.
Calling format
CALL "CBL_SET_MOUSE_POSITION"
    USING mouse-handle
          mouse-cursor-position
    RETURNING status-code.

Interface

mouse-handle

Specifies the mouse-handle returned by CBL_INIT_MOUSE.

line-position

Specifies the numeric value indicating the line position to which the mouse cursor is to be moved. The top-left corner of the screen is assumed to be the origin (where the line and column numbers are 0).

column-position

Specifies the numeric value indicating the column position to which the mouse cursor is to be moved. The top-left corner of the screen is assumed to be the origin (where the line and column numbers are 0).

Return code

The return code is set in the status-code specified in the RETURNING clause.

status-code
  • 0: Successful

  • Other than 0: Failure