GML Concepts

 

The Grid Management Library (GML) provides a comprehensive method of Grid control management in a VPRO/5 environment. Grid management is the process of updating Grid attributes and text information while administering Grid events.

 

(GML Concepts) - Procedures:

The GML contains a library of programs and associated routines that allow a developer to create code that interfaces with the Grid through the use of a "command like" set of instructions referred to as PROCEDURES. When PROCEDURES are executed within the GML programs they are expanded in a manner similar to executing macro instructions. In effect, the Grid Management Library creates a layer between the instructions coded by a developer and the instructions actually required to accomplish the selected task

 

(GML Concepts) - Template:

A string TEMPLATE is used to interface between the Grid and the developer code. When executing GML PROCEDURES this template is used to interface with the Grid on a cell by cell basis while allowing the developer to work with the Grid on a row by row basis, with column (cell) information contained within the template. Each time the template is used it must be initialized. This initialization prepares the template for use by matching the template parameters to the specific grid set it will interface. The initialization also sets variables to pre-set values which are necessary for the correct completion of a procedure by the GML. The procedure used for this initialization is outlined in the GML Procedure section of the GML documentation.

 

(GML Concepts) - Grid Sets & Members:

In the VPRO/5 environment Grids may contain up to three controls. The GML groups the three controls into grid SETS with the individual controls referred to as MEMBERS. A SET always contains a Main grid (MEMBER 1), and may also contain a Column Header (MEMBER 2) and/or Row Header (MEMBER 3).

 

(GML Concepts) - GML Programs:

Startup to initialize the GML variables. After GML initialization, program GML_M administers Notify Events associated with object type 107 (grid control). As the program executes, program GML provides the interface between the application and grid control(s) through the use of the GML template and associated GML PROCEDURES. In the attached file mode, program GML_F manages the reading of the data channel.