BLK

Contents


"Blk" launches the graphic editor on a screen. Therefore, using this editor, you may create, modify, delete, and view the coordinates of the blocks defined on the screen.

Syntax

Blk bloc_exp Using coord_tab

 

Parameters

Element

Description

Restrictions

bloc_exp

Whole number for which the value is the number of blocks

 

coord_tab

Table of whole numbers that contain the coordinates of the blocks expressed in one eighth of the line and one fourth of the column
For each block, therefore, define in the following order:
- Beginning Line
- Beginning Column
- Number of Lines
- Number of Columns
The blocks are defined in ascending order of the block numbers.

 

 

Examples

# Graphic editor on a screen that contains two blocks with
X1 = beginning column
X2 = ending column
Y1 = beginning line
Y2 = ending line
Block 1 has the following coordinates: X1=1 , X2=40, Y1=4, Y2=21
Block 2 has the following coordinates: X1=40, X2=80, Y1=4, Y2=21

Local integer COORD(1..200)
Local shortint NBBLOC

# number of blocks
NBBLOC = 2

# storage in table of the coordinates of block 1
COORD(1) = 4*8
COORD(2) = 1*4
COORD(3) = (21-4)*8
COORD(4) = (40-1)*4

# storage in table of the coordinates of block 2
COORD(5) = 4*8
COORD(6) = 40*4
COORD(7) = (21-4)*8
COORD(8) = (80-40)*4


# call of the graphic editor
Blk NBBLOC Using COORD

 

Description and Comments

"Blk" defines the block coordinates graphically.
The "Ins" (Insert) key allows the creation of a block.
The "Del" (Delete) key allows the deletion of a block.
The mouse allows you to enlarge, shrink, or move a block.
This instruction is used in screen management by the "Drawing" option of the right-click menu option on a block.

 

Remarks

 

 

Associated Keywords

 


Contents


Copyright © Sage 1999 - 2007