home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-02-01 | 45.5 KB | 1,063 lines |
- # ppres data_file
-
- # This file contains a presentation prepared by
- # Perspecta Presents 1.09
-
- dictdefine itemlook Drawing -fg Black -lp Solid -bg White -fp Solid -width 1.00 -dash solid -arrow none -feather White -dir 0
- dictdefine itemlook Arrows -fg Black -lp Solid -bg White -fp Solid -width 1.00 -dash solid -arrow head -feather White -dir 0
- dictdefine itemlook TextBox -fg None -lp Solid -bg None -fp Solid -width 1.00 -dash solid -arrow none -feather Black -dir 0
- dictdefine paralook Title -family Times -color Blue -pointsize 36 -bold 1 -italic 0 -underline 0 -left 0.00 -indent 0.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.20 -linespacetype 1 -paraspace 1.20 -paraspacetype 1 -justify left -tabs { 36 72 108 144 180 216 252 288} -powertext None
- dictdefine paralook Text -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 0.00 -indent 0.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.00 -linespacetype 1 -paraspace 1.00 -paraspacetype 1 -justify left -tabs { 36 72 108 144 180 216 252 288 324 360 396} -powertext None
- dictdefine paralook Heading -family Times -color Black -pointsize 24 -bold 1 -italic 0 -underline 0 -left 0.00 -indent 0.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.00 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 36 72 108 144 180 216 252 288 324 360 396} -powertext None
- dictdefine paralook Subheading -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 36.00 -indent 0.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.00 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 36 72 108 144 180 216 252 288 324 360 396} -powertext None
- dictdefine paralook BHeading -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 18.00 -indent -18.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.00 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 18 54 90 126 162 198 234 270 306 342 378} -powertext Bullets
- dictdefine paralook BSubheading -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 54.00 -indent -18.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.20 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 54 90 126 162 198 234 270 306 342 378} -powertext Bullets
- dictdefine paralook I.Heading -family Times -color Black -pointsize 24 -bold 1 -italic 0 -underline 0 -left 36.00 -indent -36.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.00 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 36 72 108 144 180 216 252 288 324 360 396} -powertext Roman
- dictdefine paralook 1.Heading -family Times -color Black -pointsize 24 -bold 1 -italic 0 -underline 0 -left 36.00 -indent -36.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.00 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 36 72 108 144 180 216 252 288 324 360 396} -powertext Numbers
- dictdefine paralook A.Subheading -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 63.00 -indent -27.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.00 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 72 108 144 180 216 252 288 324 360 396} -powertext Letters
- dictdefine paralook 1.Subheading -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 90.00 -indent -27.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.00 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 108 144 180 216 252 288 324 360 396} -powertext Numbers
- dictdefine paralook (a)Subheading -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 126.00 -indent -36.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.00 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 144 180 216 252 288 324 360 396} -powertext Letters(lc)
- dictdefine paralook i.Subheading -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 162.00 -indent -36.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.00 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 180 216 252 288 324 360 396} -powertext Roman(lc)
- dictdefine paralook Code -family Courier -color Green -pointsize 24 -bold 1 -italic 0 -underline 0 -left 36.00 -indent 0.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.00 -linespacetype 1 -paraspace 1.20 -paraspacetype 1 -justify left -tabs { 36 72 108 144 180 216 252 288 324 360 396} -powertext None
- dictdefine color Black #000000
- dictdefine color White #ffffff
- dictdefine color Red #ff0000
- dictdefine color Orange #ffa500
- dictdefine color Yellow #ffff00
- dictdefine color Green #00ff00
- dictdefine color Blue #00beff
- dictdefine color Purple #ca00e1
- dictdefine color Grey #c0c0c0
- talk itemconfig -look Drawing -fg Red -bg Green -width 1.00 -arrow head -feather White -dir 90
- talk textconfig -look TextBox
- talk paraconfig -look Text
- set talk(textUnits) i
- set talk(featherSwatches) 16
- set talk(noteOrientation) v
- set talk(backgOrientation) v
- set talk(featherPrint) 1
- set talk(gridGridi) 8
- set talk(windowZoom) 1
- set talk(pointsize) {8 10 12 14 18 22 24 36}
- set talk(grid) 9
- set talk(textGridc) 5
- set talk(pagesize) {612 792}
- set talk(gridUnits) i
- set talk(textGridi) 8
- set talk(featherBlend) color
- set talk(spacing) {0.00 0.50 1.00 1.2 1.50 1.75 2.00 2.5 3.00 4.0}
- set talk(featherDisplay) 1
- set talk(printLevel) 2
- set talk(customUnits) i
- set talk(gridGridc) 5
- view active 1backg
- orientation - v
- set ti [new - title "54 95 558 140.956" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title -justify center;
- insert $ti shift -revert 1;
- insert $ti shift -color Blue;
- insert $ti shift -string "Title" -color Blue;
- tiformat $ti 0 5 0 6 -color Blue;
- set ti;
-
- view active 2backg
- orientation - v
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Title" ;
- set ti;
- new - rectangle "27 108 585 114.75" -look Drawing -fg None -bg Blue -fp Blend -width 0.50 -feather White -dir 90
- set ti [new - textitem "387 702 585 718.004" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify right;
- insert $ti shift -revert 1;
- insert $ti shift -family Helvetica -pointsize 12;
- insert $ti shift -string "Writing Tcl scripts, slide " -family Helvetica -pointsize 12;
- set id [PowerCreate 1 $ti cursor {Page Number} Numbers { -family Helvetica -pointsize 12} -1 { 6 }];
- insert $ti shift -string "." -family Helvetica -pointsize 12;
- tiformat $ti 0 31 0 32 -pointsize 12;
- set ti;
-
- view active 3backg
- orientation - v
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Title" ;
- set ti;
- new - rectangle "27 108 585 114.75" -look Drawing -fg None -bg Blue -fp Blend -width 0.50 -feather White -dir 90
- set ti [new - textitem "387 702 585 717.428" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text;
- insert $ti shift -revert 1;
- insert $ti shift -pointsize 12;
- insert $ti shift -string "WRL update talk, 10/27/92, slide " -pointsize 12;
- set id [PowerCreate 1 $ti cursor {Page Number} Numbers { -pointsize 12} -1 { 3 }];
- insert $ti shift -string "." -pointsize 12;
- tiformat $ti 0 37 0 38 -pointsize 12;
- set ti;
-
- view active 1slide
- backg - 1
- set ti [new - title "27 140 585 241.0288" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title -justify center;
- insert $ti shift -revert 1;
- insert $ti shift -string "An Introduction" ;
- insertPara $ti shift ;
- insert $ti shift -string "To Writing Tcl Scripts" ;
- set ti;
- set ti [new - textitem "27 423 585 636.824" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Heading -paraspace 1.00 -justify center;
- insert $ti shift -revert 1;
- insert $ti shift -color Red -bold 0 -italic 0 -underline 0;
- insert $ti shift -string "John Ousterhout" -color Red -bold 0 -italic 0 -underline 0;
- insertPara $ti shift ;
- insertPara $ti shift -color -1;
- insertPara $ti shift ;
- insert $ti shift -string "Computer Science Division" -bold 0 -italic 0 -underline 0;
- insertPara $ti shift ;
- insert $ti shift -string "Department of EECS" -bold 0 -italic 0 -underline 0;
- insertPara $ti shift ;
- insertPara $ti shift ;
- insert $ti shift -string "University of California at Berkeley" -bold 0 -italic 0 -underline 0;
- tiformat $ti 6 36 6 37 -bold 0 -italic 0 -underline 0;
- set ti;
- set ti [new - textitem "81 270 126 301.304" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Heading;
- insert $ti shift -revert 1;
- set ti;
-
- view active 1note
- orientation - v
- icon - 100.45455 40 0.67171717
-
- view active 2slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Language Overview" ;
- set ti;
- set ti [new - textitem "45 171 585 502.2368" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Heading;
- insert $ti shift -revert 1;
- insert $ti shift -string " Two parts to learning Tcl:" ;
- insertPara $ti shift ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look 1.Heading;
- insert $ti shift -string "Syntax and substitution rules:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Subheading;
- insert $ti shift -string "Substitutions simple but may be confusing at first." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Heading;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look 1.Heading;
- insert $ti shift -string "Built-in commands:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Subheading;
- insert $ti shift -string "Can learn individually as needed." ;
- insertPara $ti shift ;
- insert $ti shift -string "Control structures are commands, not syntax." ;
- set ti;
-
- view active 3slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Basics" ;
- set ti;
- set ti [new - textitem "45 144 585 661.57748" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Heading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Tcl script =" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BSubheading;
- insert $ti shift -string "Sequence of commands." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Commands separated by newlines, semi-colons." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Heading -paraspace 2.50;
- insert $ti shift -string "Tcl command =" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BSubheading;
- insert $ti shift -string "One or more words separated by spaces." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "First word is command name, others are arguments." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Heading -paraspace 2.50;
- insert $ti shift -string "Examples:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.75;
- insert $ti shift -string "set a 22\; set b 33" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace -1;
- insertPara $ti shift ;
- insert $ti shift -string "set a 22" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 1.00;
- insert $ti shift -string "set b 33" ;
- set ti;
-
- view active 4slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Division of Responsibility" ;
- set ti;
- new - rectangle "45 180 306 198" -look Drawing -fg Black -bg Green -width 1.00 -feather White -dir 90
- new - rectangle "144 333 189 351" -look Drawing -fg Black -bg Green -width 1.00 -feather White -dir 90;
- new - rectangle "144 360 225 378" -look Drawing -fg Black -bg Green -width 1.00 -feather White -dir 90;
- new - rectangle "144 387 171 405" -look Drawing -fg Black -bg Green -width 1.00 -feather White -dir 90;
- new - rectangle "144 414 198 432" -look Drawing -fg Black -bg Green -width 1.00 -feather White -dir 90;
- new - rectangle "144 441 198 459" -look Drawing -fg Black -bg Green -width 1.00 -feather White -dir 90;
- group - 5
- new - rectangle "117 243 243 288" -look Drawing -fg Black -bg None -width 0.50 -feather White -dir 90;
- set ti [new - textitem "121.84615 251.072 238.15385 279.928" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify center;
- insert $ti shift -revert 1;
- insert $ti shift -string "Tcl Parser" ;
- set ti;;
- group - 2
- new - line "180 207 180 234" -look Drawing -fg Black -width 1.00 -arrow head
- new - line "180 297 180 324" -look Drawing -fg Black -width 1.00 -arrow head
- new - line "180 468 180 495" -look Drawing -fg Black -width 1.00 -arrow head
- set ti [new - textitem "117.6 511.0688 242.4 568.9312" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify center;
- insert $ti shift -revert 1;
- insert $ti shift -string "Command" ;
- insertPara $ti shift ;
- insert $ti shift -string "Procedure" ;
- set ti;
- new - rectangle "108 504 252 576" -look Drawing -fg Black -bg None -width 0.50 -feather White -dir 90
- new - line "180 585 180 612" -look Drawing -fg Black -width 1.00 -arrow head
- new - rectangle "126 621 234 639" -look Drawing -fg Black -bg Green -width 1.00 -feather White -dir 90
- set ti [new - textitem "270 227.4176 558 303.5824" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text;
- insert $ti shift -revert 1;
- insert $ti shift -string "Chops command into words, makes substitutions. " ;
- insert $ti shift -color Red;
- insert $ti shift -string "Does not interpret values of words." -color Red;
- set ti;
- set ti [new - textitem "279 513.7448 549 566.2552" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text;
- insert $ti shift -revert 1;
- insert $ti shift -string "Interprets words, produces string result." ;
- set ti;
- set ti [new - textitem "324 174.572 504 203.428" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text;
- insert $ti shift -revert 1;
- insert $ti shift -color Green;
- insert $ti shift -string "Command" -color Green;
- tiformat $ti 0 7 0 8 -color Green;
- set ti;
- set ti [new - textitem "243 381.572 378 410.428" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text;
- insert $ti shift -revert 1;
- insert $ti shift -color Green;
- insert $ti shift -string "Words" -color Green;
- set ti;
- set ti [new - textitem "252 615.572 423 644.428" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text;
- insert $ti shift -revert 1;
- insert $ti shift -color Green;
- insert $ti shift -string "Result" -color Green;
- set ti;
-
- view active 5slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Arguments" ;
- set ti;
- set ti [new - textitem "45 153 585 642.6056" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Heading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Parser assigns no meaning to arguments" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 1.00;
- insert $ti shift -string "(quoting by default, evaluation is special):" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Subheading;
- insert $ti shift -color Red -bold 1;
- insert $ti shift -string "C" -color Red -bold 1;
- insert $ti shift -bold -1;
- insert $ti shift -string ":" -color Red;
- insert $ti shift -color -1;
- insert $ti shift -string " " ;
- insert $ti shift -family Courier -color Green -bold 1;
- insert $ti shift -string "x = 4\; y = x+10" -family Courier -color Green -bold 1;
- insert $ti shift -family -1;
- insert $ti shift -string "\;" -color Green -bold 1;
- insertPara $ti shift -color -1 -bold -1;
- tlconfig $ti cursor -paraspace 1.00;
- insert $ti shift -string " " ;
- insert $ti shift -italic 1;
- insert $ti shift -string "y is 14" -italic 1;
- insertPara $ti shift -italic -1;
- tlconfig $ti cursor -paraspace -1;
- insert $ti shift -color Red -bold 1;
- insert $ti shift -string "Tcl:" -color Red -bold 1;
- insert $ti shift -color -1 -bold -1;
- insert $ti shift -string " " ;
- insert $ti shift -family Courier -color Green -bold 1;
- insert $ti shift -string "set x 4\; set y x+10" -family Courier -color Green -bold 1;
- insertPara $ti shift -family -1 -color -1 -bold -1;
- tlconfig $ti cursor -paraspace 1.00;
- insert $ti shift -string " " ;
- insert $ti shift -italic 1;
- insert $ti shift -string "y is ``x+10''" -italic 1;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Heading -paraspace 2.50;
- insert $ti shift -italic -1;
- insert $ti shift -string "Different commands assign different meanings to their arguments:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -string "set a 122" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace -1;
- insert $ti shift -string "expr 24/3.2" ;
- insertPara $ti shift ;
- insert $ti shift -string "eval \"set a 122\"" ;
- insertPara $ti shift ;
- insert $ti shift -string "button .b -text Hello -fg red" ;
- insertPara $ti shift ;
- insert $ti shift -string "string length Abracadabra" ;
- set ti;
-
- view active 6slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Variable Substitution" ;
- set ti;
- set ti [new - textitem "45 153 585 634.9232" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Syntax: " ;
- insert $ti shift -family Courier -color Red -bold 1;
- insert $ti shift -string "\$" -family Courier -color Red -bold 1;
- insert $ti shift -family -1 -bold -1 -italic 1;
- insert $ti shift -string "varName" -color Red -italic 1;
- insertPara $ti shift -color -1 -italic -1;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Variable name is letters, digits, underscores." ;
- insertPara $ti shift -family Courier;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "May occur anywhere within a word." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Heading -left 0.00 -indent 0.00 -paraspace 3.00 -tabs { 288};
- insert $ti shift -string "Sample command Result" ;
- insertPara $ti shift -color Red;
- tlconfig $ti cursor -paraspace -1;
- insert $ti shift -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insert $ti shift -string "set b 66 66" -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "set a b b" -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "set a \$b 66" -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "set a \$b+\$b+\$b 66+66+66" -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "set a \$b.3 66.3" -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "set a \$b4" -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insert $ti shift -color -1 -bold 0;
- insert $ti shift -string " " -family Courier -bold 0 -italic 0 -underline 0;
- insert $ti shift -family -1 -italic 1;
- insert $ti shift -string "no such variable" -bold 0 -italic 1 -underline 0;
- tiformat $ti 9 26 9 27 -bold 0 -italic 1 -underline 0;
- set ti;
-
- view active 7slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Command Substitution" ;
- set ti;
- set ti [new - textitem "45 153 585 586.973" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Syntax: " ;
- insert $ti shift -family Courier -color Red -bold 1 -italic 0 -underline 0;
- insert $ti shift -string "\[" -family Courier -color Red -bold 1 -italic 0 -underline 0;
- insert $ti shift -family Times -bold 0 -italic 1;
- insert $ti shift -string "script" -family Times -color Red -bold 0 -italic 1 -underline 0;
- insert $ti shift -family Courier -bold 1 -italic 0;
- insert $ti shift -string "\]" -family Courier -color Red -bold 1 -italic 0 -underline 0;
- insertPara $ti shift -bold -1 -underline -1;
- tlconfig $ti cursor -plook { -color Red} -paraspace 2.50;
- insert $ti shift -string "Execute script, substitute result." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "May occur anywhere within a word." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Heading -left 0.00 -indent 0.00 -paraspace 4.00 -tabs { 396};
- insert $ti shift -string "Sample Command Result" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 1.75;
- insert $ti shift -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insert $ti shift -string "set b 8 8" -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "set a \[expr \$b+2\] 10" -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "set a \"b-3 is \[expr \$b-3\]\" b-3 is 5" -family Courier -color Green -bold 1 -italic 0 -underline 0;
- tiformat $ti 6 35 6 36 -family Courier -color Green -bold 1 -italic 0 -underline 0;
- set ti;
-
- view active 8slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Controlling Word Structure" ;
- set ti;
- set ti [new - textitem "45 153 585 604.0964" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Heading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Words break at white space and semi-colons, except:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BSubheading;
- insert $ti shift -string "Double-quotes prevent breaks:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code;
- insert $ti shift -string " set a \"Funny word\; has spaces\"" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BSubheading;
- insert $ti shift -string "Curly braces prevent breaks and substitutions:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code;
- insert $ti shift -string " set a \{nested \{\} braces\}" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BSubheading;
- insert $ti shift -string "Backslashes quote special characters:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code;
- insert $ti shift -string " set a word\\ with\\ \\\$\\ and\\ space" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Heading -paraspace 3.00;
- insert $ti shift -string "Substitutions don't change word structure:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -string " set a \"two words\"" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace -1;
- insert $ti shift -string " set b \$a" ;
- set ti;
-
- view active 9slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Expressions" ;
- set ti;
- set ti [new - textitem "45 135 585 648.134" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "C-like (int and double), extra support for string operations." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Support for command and variable substitution within expressions. " ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Used in " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "expr" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string ", other commands." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Heading -left 0.00 -indent 0.00 -paraspace 2.50 -tabs { 324 360 396};
- insert $ti shift -string "Sample command Result" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace -1;
- insert $ti shift -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insert $ti shift -string "set b 5 5" -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "expr (\$b*4)-3 17" -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "expr \$b<=2 0" -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "expr \{\$b * \[fac 4\]\} 120" -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "set a Bill Bill" -family Courier -color Green -bold 1 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "expr \{\$a < \"Anne\"\} 0" -family Courier -color Green -bold 1 -italic 0 -underline 0;
- tiformat $ti 9 20 9 21 -family Courier -color Green -bold 1 -italic 0 -underline 0;
- set ti;
-
- view active 10slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Lists" ;
- set ti;
- set ti [new - textitem "36 153 585 668.672" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Zero or more elements separated by white space:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code;
- insert $ti shift -string "red green blue" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 2.00;
- insert $ti shift -string "Braces and backslashes for grouping:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code;
- insert $ti shift -string "a b \{c d e\} f" ;
- insertPara $ti shift ;
- insert $ti shift -string "one\\ word two three" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 2.00;
- insert $ti shift -string "List-related commands:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -left 36.00 -indent 0.00 -tabs { 36 180 324 360 396};
- insert $ti shift -string "concat linsert lreplace" ;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "foreach list lsearch" ;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "lappend llength lsort" ;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "lindex lrange" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 2.00;
- insert $ti shift -string "Example:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code;
- insert $ti shift -string "lindex \{a b \{c d e\} f\} 2" ;
- insertPara $ti shift ;
- insert $ti shift -color Red;
- insert $ti shift -string "c d e" -color Red;
- set ti;
- set ti [new - textitem "81 207 99 238.304" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Heading;
- insert $ti shift -revert 1;
- set ti;
-
- view active 11slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Control Structures" ;
- set ti;
- set ti [new - textitem "45 144 585 632.6168" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "C-like appearance." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -paraspace 2.00;
- insert $ti shift -string "No new syntax: just commands that take Tcl scripts as arguments." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Example:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -string "if \{\$x < 3\} \{" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 1.00;
- insert $ti shift -string " puts stdout \"x is too small!\"" ;
- insertPara $ti shift ;
- insert $ti shift -string " set x 3" ;
- insertPara $ti shift ;
- insert $ti shift -string "\}" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 2.00;
- insert $ti shift -string "Commands:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -left 36.00 -indent 0.00 -paraspace 1.50 -tabs { 252 288 324 360 396};
- insert $ti shift -string "if case" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 1.00;
- insert $ti shift -string "for break" ;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "foreach continue" ;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "while eval" ;
- set ti;
-
- view active 12slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Procedures" ;
- set ti;
- set ti [new - textitem "45 144 585 214.1264" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "proc" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string " command defines procedure:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code;
- insert $ti shift -string "proc sub1 x \{expr \$x-1\}" ;
- set ti;
- set ti [new - textitem "81 219.572 144 248.428" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify right;
- insert $ti shift -revert 1;
- insert $ti shift -color Red;
- insert $ti shift -string "name" -color Red;
- set ti;
- set ti [new - textitem "378 219.572 459 248.428" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify left;
- insert $ti shift -revert 1;
- insert $ti shift -color Red;
- insert $ti shift -string "body" -color Red;
- tiformat $ti 0 4 0 5 -color Red;
- set ti;
- set ti [new - textitem "121.5 252 346.5 280.856" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify center;
- insert $ti shift -revert 1;
- insert $ti shift -color Red;
- insert $ti shift -string "list of argument names" -color Red;
- tiformat $ti 0 22 0 23 -color Red;
- set ti;
- new - line "153 234 180 234 180 207" -look Drawing -fg Red -width 1.00 -arrow head
- new - line "234 252 234 207" -look Drawing -fg Red -width 1.00 -arrow head
- new - line "369 234 333 234 333 207" -look Drawing -fg Red -width 1.00 -arrow head
- set ti [new - textitem "45 306 585 554.4128" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Procedures behave just like built-in commands:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code;
- insert $ti shift -string "sub1 3 " ;
- insert $ti shift -family Times;
- insert $ti shift -string "returns" -family Times;
- insert $ti shift -family -1;
- insert $ti shift -string " 2" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 2.00;
- insert $ti shift -string "Arguments can have defaults:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code;
- insert $ti shift -string "proc decr \{x \{y 1\}\} \{expr \$x-\$y\}" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 2.00;
- insert $ti shift -string "Can have variable number of arguments:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code;
- insert $ti shift -string "proc foo \{a b args\} \{ ... \}" ;
- set ti;
- new - line "310.5 585 310.5 558" -look Drawing -fg Red -width 1.00 -arrow head
- set ti [new - textitem "207 585 414 613.856" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify center;
- insert $ti shift -revert 1;
- insert $ti shift -color Red;
- insert $ti shift -string "gets list of extra args" -color Red;
- set ti;
- set ti [new - textitem "45 621 585 654.272" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Scoping: local and global variables." ;
- set ti;
-
- view active 13slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Errors" ;
- set ti;
- set ti [new - textitem "45 135 585 712.0384" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Errors normally abort commands in progress, application displays message:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -pointsize 22;
- insert $ti shift -string "set n 0" -pointsize 22;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 0.00;
- insert $ti shift -string "foreach i \{1 2 3 4 5\} \{" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " set n \[expr \{\$n + i*i\}\]" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string "\}" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -color Red;
- insert $ti shift -string "syntax error in expression \"\$n + i*i\"" -color Red -pointsize 22;
- insertPara $ti shift -color -1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 2.50;
- insert $ti shift -string "Global variable " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "errorInfo" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string " provides stack trace:" ;
- insertPara $ti shift -pointsize 22;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -string "set errorInfo" -pointsize 22;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 0.00;
- insert $ti shift -color Red;
- insert $ti shift -string "syntax error in expression \"\$n + i*i\"" -color Red -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " while executing" -color Red -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string "\"expr \{\$n + i*i\}\"" -color Red -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " invoked from within" -color Red -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string "\"set n \[expr \{\$n + i*i\}\]...\"" -color Red -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " (\"foreach\" body line 2)" -color Red -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " invoked from within" -color Red -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string "\"foreach i \{1 2 3 4 5\} \{" -color Red -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " set n \[expr \{\$n + i*i\}\]" -color Red -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string "\}\"" -color Red -pointsize 22;
- tiformat $ti 17 2 17 3 -pointsize 22;
- set ti;
-
- view active 14slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Advanced Error Handling" ;
- set ti;
- set ti [new - textitem "45 162 585 534.79328" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Can catch errors:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code;
- insert $ti shift -string "catch \{expr \{2 +\}\} msg" ;
- insertPara $ti shift ;
- insert $ti shift -color Red;
- insert $ti shift -string "1" -color Red;
- insertPara $ti shift ;
- insert $ti shift -color -1;
- insert $ti shift -string "set msg" ;
- insertPara $ti shift ;
- insert $ti shift -color Red;
- insert $ti shift -string "syntax error in expression \"2 +\"" -color Red;
- insertPara $ti shift -color -1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 2.50;
- insert $ti shift -string "Can generate errors:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code;
- insert $ti shift -string "error \"bad argument\"" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -linespace 1.20 -paraspace 2.50;
- insert $ti shift -string "Global variable " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "errorCode" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string " holds machine-readable information about errors (e.g. UNIX " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "errno" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string " value)." ;
- set ti;
-
- view active 15slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Additional Tcl Features" ;
- set ti;
- set ti [new - textitem "45 153 585 651.572" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Heading;
- insert $ti shift -revert 1;
- insert $ti shift -color Red;
- insert $ti shift -string "1." -color Red;
- insert $ti shift -color -1;
- insert $ti shift -string " String manipulation commands:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -left 36.00 -indent 0.00 -paraspace 1.50 -tabs { 180 324 360 396};
- insert $ti shift -string "string format split" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 1.20;
- insert $ti shift -string "regexp scan join" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Heading;
- insert $ti shift -color Red;
- insert $ti shift -string "2." -color Red;
- insert $ti shift -color -1;
- insert $ti shift -string " File I/O commands:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -left 36.00 -indent 0.00 -paraspace 1.50 -tabs { 180 324 360 396};
- insert $ti shift -string "open seek file" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 1.20;
- insert $ti shift -string "close tell glob" ;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "gets flush cd" ;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "read eof pwd" ;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "puts source" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Heading -paraspace 2.00;
- insert $ti shift -color Red;
- insert $ti shift -string "3." -color Red;
- insert $ti shift -color -1;
- insert $ti shift -string " Subprocesses with " ;
- insert $ti shift -family Courier -bold 1 -italic 0 -underline 0;
- insert $ti shift -string "exec" -family Courier -bold 1 -italic 0 -underline 0;
- insert $ti shift -family -1 -bold -1 -italic -1 -underline -1;
- insert $ti shift -string " command:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -string "exec grep foo << \$input | wc" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Heading -paraspace 2.00;
- insert $ti shift -color Red;
- insert $ti shift -string "4." -color Red;
- insert $ti shift -color -1;
- insert $ti shift -string " History (" ;
- insert $ti shift -family Courier -bold 1 -italic 0 -underline 0;
- insert $ti shift -string "history" -family Courier -bold 1 -italic 0 -underline 0;
- insert $ti shift -family -1 -bold -1 -italic -1 -underline -1;
- insert $ti shift -string " command)." ;
- set ti;
-
- view active 16slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Add" ;
- insert $ti shift -color Blue;
- insert $ti shift -string "iti" -color Blue;
- insert $ti shift -color -1;
- insert $ti shift -string "onal Tcl Features, cont'd" ;
- set ti;
- set ti [new - textitem "45 135 585 655.8524" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Heading;
- insert $ti shift -revert 1;
- insert $ti shift -color Red;
- insert $ti shift -string "5." -color Red;
- insert $ti shift -color -1;
- insert $ti shift -string " Associative arrays:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -string "set x(fred)44" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace -1;
- insert $ti shift -string "set x(2) \[expr \$x(fred)+6\]" ;
- insertPara $ti shift ;
- insert $ti shift -string "array names x" ;
- insertPara $ti shift ;
- insert $ti shift -color Red;
- insert $ti shift -string "fred 2" -color Red;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Heading -paraspace 2.00;
- insert $ti shift -string "6. " -color Red;
- insert $ti shift -color -1;
- insert $ti shift -string "Variable scoping:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -left 36.00 -indent 0.00 -paraspace 1.50 -tabs { 180 324 360 396};
- insert $ti shift -string "global uplevel upvar" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Heading -paraspace 2.00;
- insert $ti shift -color Red;
- insert $ti shift -string "7." -color Red;
- insert $ti shift -color -1;
- insert $ti shift -string " Autoloading: " ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look BSubheading -paraspace 1.50;
- insert $ti shift -string "Tcl procedures loaded on demand." ;
- insertPara $ti shift ;
- insert $ti shift -string "Search path of directories." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Heading -paraspace 2.00;
- insert $ti shift -color Red;
- insert $ti shift -string "8." -color Red;
- insert $ti shift -color -1;
- insert $ti shift -string " Access to Tcl internals:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -left 36.00 -indent 0.00 -paraspace 1.50 -tabs { 180 324 360 396};
- insert $ti shift -string "info rename trace" ;
- set ti;
-
- view active 17slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Tcl Syntax Summary" ;
- set ti;
- set ti [new - textitem "45 153 585 664.604" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red -bold 0 -italic 0 -underline 0} -look 1.Heading -paraspace 2.00;
- insert $ti shift -revert 1;
- insert $ti shift -string "Script = commands separated by newlines, semi-colons." -bold 0 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red -bold 0 -italic 0 -underline 0};
- insert $ti shift -string "Command = words separated by white space." -bold 0 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red -bold 0 -italic 0 -underline 0};
- insert $ti shift -string "\$" -family Courier -bold 1 -italic 0 -underline 0;
- insert $ti shift -family -1 -bold 0;
- insert $ti shift -string " causes variable substitution." -bold 0 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red -bold 0 -italic 0 -underline 0};
- insert $ti shift -string "\[\]" -family Courier -bold 1 -italic 0 -underline 0;
- insert $ti shift -family -1 -bold 0;
- insert $ti shift -string " causes command substitution." -bold 0 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red -bold 0 -italic 0 -underline 0};
- insert $ti shift -string "\"\"" -family Courier -bold 1 -italic 0 -underline 0;
- insert $ti shift -family -1 -bold 0;
- insert $ti shift -string " quotes white space and semi-colons." -bold 0 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red -bold 0 -italic 0 -underline 0};
- insert $ti shift -string "\{\}" -family Courier -bold 1 -italic 0 -underline 0;
- insert $ti shift -family -1 -bold 0;
- insert $ti shift -string " quotes all special characters." -bold 0 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red -bold 0 -italic 0 -underline 0};
- insert $ti shift -string "\\" -family Courier -bold 1 -italic 0 -underline 0;
- insert $ti shift -family -1 -bold 0;
- insert $ti shift -string " quotes next character, provides C-like substitutions." -bold 0 -italic 0 -underline 0;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red -bold 0 -italic 0 -underline 0};
- insert $ti shift -string "#" -family Courier -bold 1 -italic 0 -underline 0;
- insert $ti shift -family -1 -bold 0;
- insert $ti shift -string " for comments (must be at beginning of command)." -bold 0 -italic 0 -underline 0;
- tiformat $ti 7 54 7 55 -bold 0 -italic 0 -underline 0;
- set ti;
-
- MakeWindow slide 6 0 .views.1 683x831+2+8
- SpotConfig .views.1 0 1 1 on
- UpdateTitles; set generateName 2
-