This procedure allows the user to change any of the fields of the record named 'RecordName' that is attached to the title block symbol contained in the drawing form created by the Drawing Form command. The new values are input by the user by way of a custom dialog box. The record must contain 15 fields or less.
}
LABEL 5,10,20,99;
CONST
RecordName='TitleBlkInfo'; {Default record name. This name can be changed by the user.}
VAR
i,j,k,NFields : INTEGER;
TitleBlkH,RecordH,GroupH : HANDLE;
Field : STRING;
FieldName,FieldNameD,FieldVal,NewVal : ARRAY[1..15] OF STRING;
Abort : BOOLEAN;
Procedure AlignScr(Width:INTEGER; VAR x1,x2:INTEGER);
VAR
scrx1,scry1,scrx2,scry2:INTEGER;
BEGIN
GetScreen(scrx1,scry1,scrx2,scry2);
x1:=((scrx1+scrx2) div 2)-(Width div 2);
x2:=x1+Width;
END;
Procedure Dialog1;
{
This procedure creates a custom dialog box (Dialog Box #1) which asks the user for the new values of all of the fields of the record.