DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


TMatClipBd

The class TMatClipBd supports the access to the built-in matrix clipboard of DataLab. Please note that this class cannot be created or destroyed by the user. An instance of it is automatically created during start-up and assigned to the global variable MatClipBd which provides access to the matrix clipboard.

The class TMatClipBd publishes the following properties and methods:

Properties

Methods

Example: The following small program first resizes and displays the matrix viewer at the given position. Then it copies the data of the master matrix into a dynamic array, changes one cell of the array and copies the changed data back to matrix 1 (which has been resized to a 10x10 matrix).

program Example_MatClipBd;

var
  data           : TDouble2DArray;

begin
MatClipBd.Resize (970,563);
MatClipBd.Move (100,50);
MatClipBd.Show;
Resize2DArray (data, MatClipBd.ClipBd[0].NrOfColumns, MatClipBd.ClipBd[0].NrOfRows);
MatClipBd.ClipBd[0].CopyDataTo2DArray (data);
                                        // copy the master matrix to the array data
data[0][0] := 1111.1;                   // change the top left cell
MatClipBd.ClipBd[1].Resize (10,10);     // resize the matrix 1 to a 10x10 matrix
MatClipBd.ClipBd[1].CopyDataFrom2DArray (data,0,0,0,0,1,1);
                                        // copy the adjusted data to matrix 1
MatClipBd.Caption[1] := 'Changed Data';
MatClipBd.Visible[1] := true;           // make matrix 1 visible and switch to it
end.