home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 March
/
Chip_1998-03_cd.bin
/
tema
/
MINICAD
/
MC7DEMO
/
MINICAD.1
/
HELP.MPC
< prev
next >
Wrap
Text File
|
1997-04-30
|
5KB
|
152 lines
PROCEDURE HelpLinks;
VAR
item, first, x1, x2, which : INTEGER;
cancel,finished,goBack : BOOLEAN;
PROCEDURE CenterDialog(dX1,dX2 : INTEGER; VAR x1,x2 : INTEGER);
VAR
scrX1,scrY1,scrX2,scrY2,w : INTEGER;
BEGIN
GetScreen(scrX1,scrY1,scrX2,scrY2);
w := dX2 - dX1;
x1 := ((scrX1 + scrX2) DIV 2) - (w DIV 2);
x2 := x1 + w;
END;
PROCEDURE HELP1;
BEGIN
CENTERDIALOG(0,238,x1,x2);
BEGINDIALOG(1,1,x1,97,x2,343);
ADDBUTTON('OK',1,1,137,199,201,222);
ADDFIELD('___________________',2,1,39,27,203,45);
ADDFIELD('Data Labels Help Dialog',3,1,38,20,202,37);
ADDBUTTON('Setup╔',4,1,34,109,114,132);
ADDBUTTON('Create╔',5,1,129,109,212,132);
ADDBUTTON('Edit╔',6,1,34,146,114,169);
ADDBUTTON('Update╔',7,1,129,146,212,169);
ADDBUTTON('What are Data Labels?',8,1,34,70,212,93);
ENDDIALOG;
END;
PROCEDURE HELP2;
BEGIN
CENTERDIALOG(0,320,x1,x2);
BEGINDIALOG(2,1,x1,110,x2,348);
ADDBUTTON('OK',1,1,217,195,281,218);
ADDBUTTON('Go Back',2,1,140,195,204,218);
ADDFIELD('The Setup procedure creates the',3,1,37,15,275,33);
ADDFIELD('the class, layer and records',4,1,37,38,253,56);
ADDFIELD('required to use data labels from',5,1,37,61,268,79);
ADDFIELD('within your drawing file. The',6,1,37,84,278,102);
ADDFIELD('procedure uses the active symbol',7,1,37,107,305,125);
ADDFIELD('or the first symbol for use as a model',8,1,37,130,296,148);
ADDFIELD('in the legend to locate data labels.',9,1,37,153,284,171);
ENDDIALOG;
END;
PROCEDURE HELP3;
BEGIN
CENTERDIALOG(0,320,x1,x2);
BEGINDIALOG(3,1,x1,110,x2,348);
ADDBUTTON('OK',1,1,217,195,281,218);
ADDBUTTON('Go Back',2,1,140,195,204,218);
ADDFIELD('Text objects from the legend are',3,1,37,15,275,33);
ADDFIELD('used to to create labels around',4,1,37,38,268,56);
ADDFIELD('selected symbols. The text is',5,1,37,61,268,79);
ADDFIELD('arranged around the symbol',6,1,37,84,278,102);
ADDFIELD('in the same relationship as the',7,1,37,107,305,125);
ADDFIELD('╘Label Key╒ symbol in the ╘Legend╒',8,1,37,130,296,148);
ADDFIELD('layer, but it is not rotated.',9,1,37,153,284,171);
ENDDIALOG;
END;
PROCEDURE HELP4;
BEGIN
CENTERDIALOG(0,343,x1,x2);
BEGINDIALOG(4,1,x1,110,x2,348);
ADDBUTTON('OK',1,1,253,195,317,218);
ADDBUTTON('Go Back',2,1,176,195,240,218);
ADDFIELD('Edit Data Labels prompts for you to',3,1,37,15,303,33);
ADDFIELD('select existing Data Labels in your',4,1,37,38,294,56);
ADDFIELD('file and presents a dialog box to',5,1,37,61,289,79);
ADDFIELD('change the text. It not only changes',6,1,37,84,301,102);
ADDFIELD('the label on the drawing, but it also',7,1,37,107,312,125);
ADDFIELD('updates the database, attached to',8,1,37,130,296,148);
ADDFIELD('the source symbols, as well.',9,1,37,153,332,171);
ENDDIALOG;
END;
PROCEDURE HELP5;
BEGIN
CENTERDIALOG(0,343,x1,x2);
BEGINDIALOG(5,1,x1,110,x2,348);
ADDBUTTON('OK',1,1,253,195,317,218);
ADDBUTTON('Go Back',2,1,176,195,240,218);
ADDFIELD('Update Data Labels changes existing',3,1,37,15,303,33);
ADDFIELD('labels to reflect new data you╒ve',4,1,37,38,294,56);
ADDFIELD('entered in the database attached',5,1,37,61,289,79);
ADDFIELD('to symbols. The selection may',6,1,37,84,301,102);
ADDFIELD('have other graphic objects, but',7,1,37,107,312,125);
ADDFIELD('only data labels will be processed.',8,1,37,130,296,148);
ENDDIALOG;
END;
PROCEDURE HELP6;
BEGIN
CENTERDIALOG(0,374,x1,x2);
BEGINDIALOG(6,1,x1,46,x2,346);
ADDBUTTON('OK',1,1,256,260,320,283);
ADDBUTTON('Go Back',2,1,179,260,243,283);
ADDFIELD('Data Labels are text objects created near',3,1,37,15,340,33);
ADDFIELD('each selected symbol showing database',4,1,37,38,332,56);
ADDFIELD('information you''ve attached to the symbol.',5,1,37,61,342,79);
ADDFIELD('The text is arranged around the symbol',6,1,37,84,343,102);
ADDFIELD('in the same relationship as the ╘Legend╒',7,1,37,107,339,125);
ADDFIELD('you''ve set up. Once created, the labels',8,1,37,130,329,148);
ADDFIELD('can be moved where you like to make it',9,1,37,153,347,171);
ADDFIELD('look better, if necessary. The text remains',10,1,37,176,340,194);
ADDFIELD('associated with the symbol and can be',11,1,37,199,313,217);
ADDFIELD('updated with a macro.',12,1,37,222,198,240);
ENDDIALOG;
END;
BEGIN {MAIN}
finished := FALSE;
cancel:= FALSE;
goBack:= FALSE;
which:= 1;
HELP1;
HELP2;
HELP3;
HELP4;
HELP5;
HELP6;
REPEAT
GetDialog(which);
finished := FALSE;
cancel:= FALSE;
REPEAT DialogEvent(item);
IF item = 1 THEN
BEGIN
finished := TRUE;
cancel := TRUE;
END;
IF item >1 THEN
BEGIN
finished := TRUE;
cancel := FALSE;
which:= 1;
END;
UNTIL finished;
CLRDIALOG;
IF item = 4 THEN which:= 2;
IF item = 5 THEN which:= 3;
IF item = 6 THEN which:= 4;
IF item = 7 THEN which:= 5;
IF item = 8 THEN which:= 6;
UNTIL cancel = TRUE;
END; {OF MAIN}
RUN(HelpLinks);