OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tk/] [doc/] [tk4.0.ps] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
%!
2
%%BoundingBox: (atend)
3
%%Pages: (atend)
4
%%DocumentFonts: (atend)
5
%%EndComments
6
%%BeginProlog
7
%
8
% FrameMaker postscript_prolog 3.0, for use with FrameMaker 3.0
9
% This postscript_prolog file is Copyright (c) 1986-1991 Frame Technology
10
% Corporation.  All rights reserved.  This postscript_prolog file may be
11
% freely copied and distributed in conjunction with documents created using
12
% FrameMaker.
13
% NOTE
14
% This file fixes the problem with NeWS printers dithering color output.
15
% Any questions should be sent to mickey@magickingdom.eng.sun.com
16
%
17
% Known Problems:
18
%       Due to bugs in Transcript, the 'PS-Adobe-' is omitted from line 1
19
/FMversion (3.0) def
20
% Set up Color vs. Black-and-White
21
 
22
/FMPrintInColor { % once-thru loop gimmick
23
    % See if we're a NeWSprint printer
24
     /currentcanvas where {
25
        pop systemdict /separationdict known
26
        exit
27
     } if
28
% originally had the following, which should always be false:
29
%    /currentcanvas where {
30
%        pop currentcanvas /Color known {
31
%           currentcanvas /Color get
32
%           exit
33
%        } if
34
%    } if
35
    systemdict /colorimage known
36
    systemdict /currentcolortransfer known and
37
exit } loop def
38
 
39
% Uncomment the following line to force b&w on color printer
40
%   /FMPrintInColor false def
41
/FrameDict 195 dict def
42
systemdict /errordict known not {/errordict 10 dict def
43
                errordict /rangecheck {stop} put} if
44
% The readline in 23.0 doesn't recognize cr's as nl's on AppleTalk
45
FrameDict /tmprangecheck errordict /rangecheck get put
46
errordict /rangecheck {FrameDict /bug true put} put
47
FrameDict /bug false put
48
mark
49
% Some PS machines read past the CR, so keep the following 3 lines together!
50
currentfile 5 string readline
51
00
52
0000000000
53
cleartomark
54
errordict /rangecheck FrameDict /tmprangecheck get put
55
FrameDict /bug get {
56
        /readline {
57
                /gstring exch def
58
                /gfile exch def
59
                /gindex 0 def
60
                {
61
                        gfile read pop
62
                        dup 10 eq {exit} if
63
                        dup 13 eq {exit} if
64
                        gstring exch gindex exch put
65
                        /gindex gindex 1 add def
66
                } loop
67
                pop
68
                gstring 0 gindex getinterval true
69
                } def
70
        } if
71
/FMVERSION {
72
        FMversion ne {
73
                /Times-Roman findfont 18 scalefont setfont
74
                100 100 moveto
75
                (FrameMaker version does not match postscript_prolog!)
76
                dup =
77
                show showpage
78
                } if
79
        } def
80
/FMLOCAL {
81
        FrameDict begin
82
 
83
        end
84
        } def
85
        /gstring FMLOCAL
86
        /gfile FMLOCAL
87
        /gindex FMLOCAL
88
        /orgxfer FMLOCAL
89
        /orgproc FMLOCAL
90
        /organgle FMLOCAL
91
        /orgfreq FMLOCAL
92
        /yscale FMLOCAL
93
        /xscale FMLOCAL
94
        /manualfeed FMLOCAL
95
        /paperheight FMLOCAL
96
        /paperwidth FMLOCAL
97
/FMDOCUMENT {
98
        array /FMfonts exch def
99
        /#copies exch def
100
        FrameDict begin
101
 
102
        /manualfeed exch def
103
        /paperheight exch def
104
        /paperwidth exch def
105
        /yscale exch def
106
        /xscale exch def
107
        currenttransfer cvlit /orgxfer exch def
108
        currentscreen cvlit /orgproc exch def
109
        /organgle exch def /orgfreq exch def
110
        setpapername
111
        manualfeed {true} {papersize} ifelse
112
        {manualpapersize} {false} ifelse
113
        {desperatepapersize} if
114
        end
115
        } def
116
        /pagesave FMLOCAL
117
        /orgmatrix FMLOCAL
118
        /landscape FMLOCAL
119
/FMBEGINPAGE {
120
        FrameDict begin
121
        /pagesave save def
122
        3.86 setmiterlimit
123
        /landscape exch 0 ne def
124
        landscape {
125
                90 rotate 0 exch neg translate pop
126
                }
127
                {pop pop}
128
                ifelse
129
        xscale yscale scale
130
        /orgmatrix matrix def
131
        gsave
132
        } def
133
/FMENDPAGE {
134
        grestore
135
        pagesave restore
136
        end
137
        showpage
138
        } def
139
/FMFONTDEFINE {
140
        FrameDict begin
141
        findfont
142
        ReEncode
143
        1 index exch
144
        definefont
145
        FMfonts 3 1 roll
146
        put
147
        end
148
        } def
149
/FMFILLS {
150
        FrameDict begin
151
        array /fillvals exch def
152
        end
153
        } def
154
/FMFILL {
155
        FrameDict begin
156
         fillvals 3 1 roll put
157
        end
158
        } def
159
/FMNORMALIZEGRAPHICS {
160
        newpath
161
        0.0 0.0 moveto
162
        1 setlinewidth
163
 
164
 
165
 
166
        } bind def
167
        /fx FMLOCAL
168
        /fy FMLOCAL
169
        /fh FMLOCAL
170
        /fw FMLOCAL
171
        /llx FMLOCAL
172
        /lly FMLOCAL
173
        /urx FMLOCAL
174
        /ury FMLOCAL
175
/FMBEGINEPSF {
176
        end
177
        /FMEPSF save def
178
        /showpage {} def
179
        FMNORMALIZEGRAPHICS
180
        [/fy /fx /fh /fw /ury /urx /lly /llx] {exch def} forall
181
        fx fy translate
182
        rotate
183
        fw urx llx sub div fh ury lly sub div scale
184
        llx neg lly neg translate
185
        } bind def
186
/FMENDEPSF {
187
        FMEPSF restore
188
        FrameDict begin
189
        } bind def
190
FrameDict begin
191
/setmanualfeed {
192
%%BeginFeature *ManualFeed True
193
         statusdict /manualfeed true put
194
%%EndFeature
195
        } def
196
/max {2 copy lt {exch} if pop} bind def
197
/min {2 copy gt {exch} if pop} bind def
198
/inch {72 mul} def
199
/pagedimen {
200
        paperheight sub abs 16 lt exch
201
        paperwidth sub abs 16 lt and
202
        {/papername exch def} {pop} ifelse
203
        } def
204
        /papersizedict FMLOCAL
205
/setpapername {
206
        /papersizedict 14 dict def
207
        papersizedict begin
208
        /papername /unknown def
209
                /Letter 8.5 inch 11.0 inch pagedimen
210
                /LetterSmall 7.68 inch 10.16 inch pagedimen
211
                /Tabloid 11.0 inch 17.0 inch pagedimen
212
                /Ledger 17.0 inch 11.0 inch pagedimen
213
                /Legal 8.5 inch 14.0 inch pagedimen
214
                /Statement 5.5 inch 8.5 inch pagedimen
215
                /Executive 7.5 inch 10.0 inch pagedimen
216
                /A3 11.69 inch 16.5 inch pagedimen
217
                /A4 8.26 inch 11.69 inch pagedimen
218
                /A4Small 7.47 inch 10.85 inch pagedimen
219
                /B4 10.125 inch 14.33 inch pagedimen
220
                /B5 7.16 inch 10.125 inch pagedimen
221
        end
222
        } def
223
/papersize {
224
        papersizedict begin
225
                /Letter {lettertray letter} def
226
                /LetterSmall {lettertray lettersmall} def
227
                /Tabloid {11x17tray 11x17} def
228
                /Ledger {ledgertray ledger} def
229
                /Legal {legaltray legal} def
230
                /Statement {statementtray statement} def
231
                /Executive {executivetray executive} def
232
                /A3 {a3tray a3} def
233
                /A4 {a4tray a4} def
234
                /A4Small {a4tray a4small} def
235
                /B4 {b4tray b4} def
236
                /B5 {b5tray b5} def
237
                /unknown {unknown} def
238
        papersizedict dup papername known {papername} {/unknown} ifelse get
239
        end
240
        /FMdicttop countdictstack 1 add def
241
        statusdict begin stopped end
242
        countdictstack -1 FMdicttop {pop end} for
243
        } def
244
/manualpapersize {
245
        papersizedict begin
246
                /Letter {letter} def
247
                /LetterSmall {lettersmall} def
248
                /Tabloid {11x17} def
249
                /Ledger {ledger} def
250
                /Legal {legal} def
251
                /Statement {statement} def
252
                /Executive {executive} def
253
                /A3 {a3} def
254
                /A4 {a4} def
255
                /A4Small {a4small} def
256
                /B4 {b4} def
257
                /B5 {b5} def
258
                /unknown {unknown} def
259
        papersizedict dup papername known {papername} {/unknown} ifelse get
260
        end
261
        stopped
262
        } def
263
/desperatepapersize {
264
        statusdict /setpageparams known
265
                {
266
                paperwidth paperheight 0 1
267
                statusdict begin
268
                {setpageparams} stopped pop
269
                end
270
                } if
271
        } def
272
/savematrix {
273
        orgmatrix currentmatrix pop
274
        } bind def
275
/restorematrix {
276
        orgmatrix setmatrix
277
        } bind def
278
/dmatrix matrix def
279
/dpi    72 0 dmatrix defaultmatrix dtransform
280
    dup mul exch   dup mul add   sqrt def
281
/freq dpi 18.75 div 8 div round dup 0 eq {pop 1} if 8 mul dpi exch div def
282
/sangle 1 0 dmatrix defaultmatrix dtransform exch atan def
283
/DiacriticEncoding [
284
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
285
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
286
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
287
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
288
/.notdef /.notdef /.notdef /.notdef /space /exclam /quotedbl
289
/numbersign /dollar /percent /ampersand /quotesingle /parenleft
290
/parenright /asterisk /plus /comma /hyphen /period /slash /zero /one
291
/two /three /four /five /six /seven /eight /nine /colon /semicolon
292
/less /equal /greater /question /at /A /B /C /D /E /F /G /H /I /J /K
293
/L /M /N /O /P /Q /R /S /T /U /V /W /X /Y /Z /bracketleft /backslash
294
/bracketright /asciicircum /underscore /grave /a /b /c /d /e /f /g /h
295
/i /j /k /l /m /n /o /p /q /r /s /t /u /v /w /x /y /z /braceleft /bar
296
/braceright /asciitilde /.notdef /Adieresis /Aring /Ccedilla /Eacute
297
/Ntilde /Odieresis /Udieresis /aacute /agrave /acircumflex /adieresis
298
/atilde /aring /ccedilla /eacute /egrave /ecircumflex /edieresis
299
/iacute /igrave /icircumflex /idieresis /ntilde /oacute /ograve
300
/ocircumflex /odieresis /otilde /uacute /ugrave /ucircumflex
301
/udieresis /dagger /.notdef /cent /sterling /section /bullet
302
/paragraph /germandbls /registered /copyright /trademark /acute
303
/dieresis /.notdef /AE /Oslash /.notdef /.notdef /.notdef /.notdef
304
/yen /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
305
/ordfeminine /ordmasculine /.notdef /ae /oslash /questiondown
306
/exclamdown /logicalnot /.notdef /florin /.notdef /.notdef
307
/guillemotleft /guillemotright /ellipsis /.notdef /Agrave /Atilde
308
/Otilde /OE /oe /endash /emdash /quotedblleft /quotedblright
309
/quoteleft /quoteright /.notdef /.notdef /ydieresis /Ydieresis
310
/fraction /currency /guilsinglleft /guilsinglright /fi /fl /daggerdbl
311
/periodcentered /quotesinglbase /quotedblbase /perthousand
312
/Acircumflex /Ecircumflex /Aacute /Edieresis /Egrave /Iacute
313
/Icircumflex /Idieresis /Igrave /Oacute /Ocircumflex /.notdef /Ograve
314
/Uacute /Ucircumflex /Ugrave /dotlessi /circumflex /tilde /macron
315
/breve /dotaccent /ring /cedilla /hungarumlaut /ogonek /caron
316
] def
317
/ReEncode {
318
        dup
319
        length
320
        dict begin
321
        {
322
        1 index /FID ne
323
                {def}
324
                {pop pop} ifelse
325
        } forall
326
 
327
        currentdict
328
        end
329
        } bind def
330
/graymode true def
331
        /bwidth FMLOCAL
332
        /bpside FMLOCAL
333
        /bstring FMLOCAL
334
        /onbits FMLOCAL
335
        /offbits FMLOCAL
336
        /xindex FMLOCAL
337
        /yindex FMLOCAL
338
        /x FMLOCAL
339
        /y FMLOCAL
340
/setpattern {
341
         /bwidth  exch def
342
         /bpside  exch def
343
         /bstring exch def
344
         /onbits 0 def  /offbits 0 def
345
         freq sangle landscape {90 add} if
346
                {/y exch def
347
                 /x exch def
348
                 /xindex x 1 add 2 div bpside mul cvi def
349
                 /yindex y 1 add 2 div bpside mul cvi def
350
                 bstring yindex bwidth mul xindex 8 idiv add get
351
                 1 7 xindex 8 mod sub bitshift and 0 ne
352
                 {/onbits  onbits  1 add def 1}
353
                 {/offbits offbits 1 add def 0}
354
                 ifelse
355
                }
356
                setscreen
357
         {} settransfer
358
         offbits offbits onbits add div FMsetgray
359
        /graymode false def
360
        } bind def
361
/grayness {
362
        FMsetgray
363
        graymode not {
364
                /graymode true def
365
                orgxfer cvx settransfer
366
                orgfreq organgle orgproc cvx setscreen
367
                } if
368
        } bind def
369
        /HUE FMLOCAL
370
        /SAT FMLOCAL
371
        /BRIGHT FMLOCAL
372
        /Colors FMLOCAL
373
FMPrintInColor
374
 
375
        {
376
        /HUE 0 def
377
        /SAT 0 def
378
        /BRIGHT 0 def
379
        % array of arrays Hue and Sat values for the separations [HUE BRIGHT]
380
        /Colors
381
        [[0    0  ]    % black
382
         [0    0  ]    % white
383
         [0.00 1.0]    % red
384
         [0.37 1.0]    % green
385
         [0.60 1.0]    % blue
386
         [0.50 1.0]    % cyan
387
         [0.83 1.0]    % magenta
388
         [0.16 1.0]    % comment / yellow
389
         ] def
390
 
391
        /BEGINBITMAPCOLOR {
392
                BITMAPCOLOR} def
393
        /BEGINBITMAPCOLORc {
394
                BITMAPCOLORc} def
395
        /BEGINBITMAPTRUECOLOR {
396
                BITMAPTRUECOLOR } def
397
        /BEGINBITMAPTRUECOLORc {
398
                BITMAPTRUECOLORc } def
399
        /K {
400
                Colors exch get dup
401
 
402
                1 get /BRIGHT exch store
403
                  HUE 0 eq BRIGHT 0 eq and
404
                        {1.0 SAT sub setgray}
405
                        {HUE SAT BRIGHT sethsbcolor}
406
                  ifelse
407
                } def
408
        /FMsetgray {
409
                /SAT exch 1.0 exch sub store
410
                  HUE 0 eq BRIGHT 0 eq and
411
                        {1.0 SAT sub setgray}
412
                        {HUE SAT BRIGHT sethsbcolor}
413
                  ifelse
414
                } bind def
415
        }
416
 
417
        {
418
        /BEGINBITMAPCOLOR {
419
                BITMAPGRAY} def
420
        /BEGINBITMAPCOLORc {
421
                BITMAPGRAYc} def
422
        /BEGINBITMAPTRUECOLOR {
423
                BITMAPTRUEGRAY } def
424
        /BEGINBITMAPTRUECOLORc {
425
                BITMAPTRUEGRAYc } def
426
        /FMsetgray {setgray} bind def
427
        /K {
428
                pop
429
                } def
430
        }
431
ifelse
432
/normalize {
433
        transform round exch round exch itransform
434
        } bind def
435
/dnormalize {
436
        dtransform round exch round exch idtransform
437
        } bind def
438
/lnormalize {
439
 
440
        } bind def
441
/H {
442
        lnormalize setlinewidth
443
        } bind def
444
/Z {
445
        setlinecap
446
        } bind def
447
        /fillvals FMLOCAL
448
/X {
449
        fillvals exch get
450
        dup type /stringtype eq
451
        {8 1 setpattern}
452
        {grayness}
453
        ifelse
454
        } bind def
455
/V {
456
        gsave eofill grestore
457
        } bind def
458
/N {
459
        stroke
460
        } bind def
461
/M {newpath moveto} bind def
462
/E {lineto} bind def
463
/D {curveto} bind def
464
/O {closepath} bind def
465
        /n FMLOCAL
466
/L {
467
        /n exch def
468
        newpath
469
        normalize
470
        moveto
471
        2 1 n {pop normalize lineto} for
472
        } bind def
473
/Y {
474
        L
475
        closepath
476
        } bind def
477
        /x1 FMLOCAL
478
        /x2 FMLOCAL
479
        /y1 FMLOCAL
480
        /y2 FMLOCAL
481
        /rad FMLOCAL
482
/R {
483
        /y2 exch def
484
        /x2 exch def
485
        /y1 exch def
486
        /x1 exch def
487
        x1 y1
488
        x2 y1
489
        x2 y2
490
        x1 y2
491
        4 Y
492
        } bind def
493
/RR {
494
        /rad exch def
495
        normalize
496
        /y2 exch def
497
        /x2 exch def
498
        normalize
499
        /y1 exch def
500
        /x1 exch def
501
        newpath
502
        x1 y1 rad add moveto
503
        x1 y2 x2 y2 rad arcto
504
        x2 y2 x2 y1 rad arcto
505
        x2 y1 x1 y1 rad arcto
506
        x1 y1 x1 y2 rad arcto
507
        closepath
508
        16 {pop} repeat
509
        } bind def
510
/C {
511
        grestore
512
        gsave
513
        R
514
        clip
515
        } bind def
516
        /FMpointsize FMLOCAL
517
/F {
518
        FMfonts exch get
519
        FMpointsize scalefont
520
        setfont
521
        } bind def
522
/Q {
523
        /FMpointsize exch def
524
        F
525
        } bind def
526
/T {
527
        moveto show
528
        } bind def
529
/RF {
530
        rotate
531
 
532
        } bind def
533
/TF {
534
        gsave
535
        moveto
536
        RF
537
        show
538
        grestore
539
        } bind def
540
/P {
541
        moveto
542
 
543
        } bind def
544
/PF {
545
        gsave
546
        moveto
547
        RF
548
 
549
        grestore
550
        } bind def
551
/S {
552
        moveto
553
 
554
        } bind def
555
/SF {
556
        gsave
557
        moveto
558
        RF
559
 
560
        grestore
561
        } bind def
562
/B {
563
        moveto
564
 
565
        } bind def
566
/BF {
567
        gsave
568
        moveto
569
        RF
570
 
571
        grestore
572
        } bind def
573
/G {
574
        gsave
575
        newpath
576
        normalize translate 0.0 0.0 moveto
577
        dnormalize scale
578
        0.0 0.0 1.0 5 3 roll arc
579
        closepath fill
580
        grestore
581
        } bind def
582
/A {
583
        gsave
584
        savematrix
585
        newpath
586
        2 index 2 div add exch 3 index 2 div sub exch
587
        normalize 2 index 2 div sub exch 3 index 2 div add exch
588
        translate
589
        scale
590
        0.0 0.0 1.0 5 3 roll arc
591
        restorematrix
592
        stroke
593
        grestore
594
        } bind def
595
        /x FMLOCAL
596
        /y FMLOCAL
597
        /w FMLOCAL
598
        /h FMLOCAL
599
        /xx FMLOCAL
600
        /yy FMLOCAL
601
        /ww FMLOCAL
602
        /hh FMLOCAL
603
        /FMsaveobject FMLOCAL
604
        /FMoptop FMLOCAL
605
        /FMdicttop FMLOCAL
606
/BEGINPRINTCODE {
607
        /FMdicttop countdictstack 1 add def
608
        /FMoptop count 4 sub def
609
        /FMsaveobject save def
610
        userdict begin
611
        /showpage {} def
612
        FMNORMALIZEGRAPHICS
613
        3 index neg 3 index neg translate
614
        } bind def
615
/ENDPRINTCODE {
616
        count -1 FMoptop {pop pop} for
617
        countdictstack -1 FMdicttop {pop end} for
618
        FMsaveobject restore
619
        } bind def
620
/gn {
621
 
622
        {       46 mul
623
                cf read pop
624
                32 sub
625
                dup 46 lt {exit} if
626
                46 sub add
627
                } loop
628
        add
629
        } bind def
630
        /str FMLOCAL
631
/cfs {
632
        /str sl string def
633
 
634
        str def
635
        } bind def
636
/ic [
637
 
638
 
639
 
640
        {0 hx} {1 hx} {2 hx} {3 hx} {4 hx} {5 hx} {6 hx} {7 hx} {8 hx} {9 hx}
641
        {10 hx} {11 hx} {12 hx} {13 hx} {14 hx} {15 hx} {16 hx} {17 hx} {18 hx}
642
        {19 hx} {gn hx} {0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10} {11} {12}
643
        {13} {14} {15} {16} {17} {18} {19} {gn} {0 wh} {1 wh} {2 wh} {3 wh}
644
        {4 wh} {5 wh} {6 wh} {7 wh} {8 wh} {9 wh} {10 wh} {11 wh} {12 wh}
645
        {13 wh} {14 wh} {gn wh} {0 bl} {1 bl} {2 bl} {3 bl} {4 bl} {5 bl} {6 bl}
646
        {7 bl} {8 bl} {9 bl} {10 bl} {11 bl} {12 bl} {13 bl} {14 bl} {gn bl}
647
        {0 fl} {1 fl} {2 fl} {3 fl} {4 fl} {5 fl} {6 fl} {7 fl} {8 fl} {9 fl}
648
        {10 fl} {11 fl} {12 fl} {13 fl} {14 fl} {gn fl}
649
        ] def
650
        /sl FMLOCAL
651
        /val FMLOCAL
652
        /ws FMLOCAL
653
        /im FMLOCAL
654
        /bs FMLOCAL
655
        /cs FMLOCAL
656
        /len FMLOCAL
657
        /pos FMLOCAL
658
/ms {
659
        /sl exch def
660
        /val 255 def
661
        /ws cfs
662
        /im cfs
663
        /val 0 def
664
        /bs cfs
665
        /cs cfs
666
        } bind def
667
400 ms
668
/ip {
669
        is
670
 
671
        cf cs readline pop
672
        {       ic exch get exec
673
                add
674
                } forall
675
        pop
676
 
677
        } bind def
678
/wh {
679
        /len exch def
680
        /pos exch def
681
        ws 0 len getinterval im pos len getinterval copy pop
682
        pos len
683
        } bind def
684
/bl {
685
        /len exch def
686
        /pos exch def
687
        bs 0 len getinterval im pos len getinterval copy pop
688
        pos len
689
        } bind def
690
/s1 1 string def
691
/fl {
692
        /len exch def
693
        /pos exch def
694
        /val cf s1 readhexstring pop 0 get def
695
        pos 1 pos len add 1 sub {im exch val put} for
696
        pos len
697
        } bind def
698
/hx {
699
        3 copy getinterval
700
        cf exch readhexstring pop pop
701
        } bind def
702
        /h FMLOCAL
703
        /w FMLOCAL
704
        /d FMLOCAL
705
        /lb FMLOCAL
706
        /bitmapsave FMLOCAL
707
        /is FMLOCAL
708
        /cf FMLOCAL
709
/wbytes {
710
        dup
711
        8 eq {pop} {1 eq {7 add 8 idiv} {3 add 4 idiv} ifelse} ifelse
712
        } bind def
713
/BEGINBITMAPBWc {
714
        1 {} COMMONBITMAPc
715
        } bind def
716
/BEGINBITMAPGRAYc {
717
        8 {} COMMONBITMAPc
718
        } bind def
719
/BEGINBITMAP2BITc {
720
        2 {} COMMONBITMAPc
721
        } bind def
722
/COMMONBITMAPc {
723
        /r exch def
724
        /d exch def
725
        gsave
726
        translate rotate scale /h exch def /w exch def
727
        /lb w d wbytes def
728
        sl lb lt {lb ms} if
729
        /bitmapsave save def
730
        r
731
        /is im 0 lb getinterval def
732
        ws 0 lb getinterval is copy pop
733
        /cf currentfile def
734
        w h d [w 0 0 h neg 0 h]
735
        {ip} image
736
        bitmapsave restore
737
        grestore
738
        } bind def
739
/BEGINBITMAPBW {
740
        1 {} COMMONBITMAP
741
        } bind def
742
/BEGINBITMAPGRAY {
743
        8 {} COMMONBITMAP
744
        } bind def
745
/BEGINBITMAP2BIT {
746
        2 {} COMMONBITMAP
747
        } bind def
748
/COMMONBITMAP {
749
        /r exch def
750
        /d exch def
751
        gsave
752
        translate rotate scale /h exch def /w exch def
753
        /bitmapsave save def
754
        r
755
        /is w d wbytes string def
756
        /cf currentfile def
757
        w h d [w 0 0 h neg 0 h]
758
        {cf is readhexstring pop} image
759
        bitmapsave restore
760
        grestore
761
        } bind def
762
        /proc1 FMLOCAL
763
        /proc2 FMLOCAL
764
        /newproc FMLOCAL
765
/Fmcc {
766
    /proc2 exch cvlit def
767
    /proc1 exch cvlit def
768
    /newproc proc1 length proc2 length add array def
769
    newproc 0 proc1 putinterval
770
    newproc proc1 length proc2 putinterval
771
    newproc cvx
772
} bind def
773
/ngrayt 256 array def
774
/nredt 256 array def
775
/nbluet 256 array def
776
/ngreent 256 array def
777
        /gryt FMLOCAL
778
        /blut FMLOCAL
779
        /grnt FMLOCAL
780
        /redt FMLOCAL
781
        /indx FMLOCAL
782
        /cynu FMLOCAL
783
        /magu FMLOCAL
784
        /yelu FMLOCAL
785
        /k FMLOCAL
786
        /u FMLOCAL
787
/colorsetup {
788
        currentcolortransfer
789
        /gryt exch def
790
        /blut exch def
791
        /grnt exch def
792
        /redt exch def
793
 
794
                /indx exch def
795
                /cynu 1 red indx get 255 div sub def
796
                /magu 1 green indx get 255 div sub def
797
                /yelu 1 blue indx get 255 div sub def
798
                /k cynu magu min yelu min def
799
                /u k currentundercolorremoval exec def
800
                nredt indx 1 0 cynu u sub max sub redt exec put
801
                ngreent indx 1 0 magu u sub max sub grnt exec put
802
                nbluet indx 1 0 yelu u sub max sub blut exec put
803
                ngrayt indx 1 k currentblackgeneration exec sub gryt exec put
804
        } for
805
        {255 mul cvi nredt exch get}
806
        {255 mul cvi ngreent exch get}
807
        {255 mul cvi nbluet exch get}
808
        {255 mul cvi ngrayt exch get}
809
        setcolortransfer
810
        {pop 0} setundercolorremoval
811
        {} setblackgeneration
812
        } bind def
813
        /tran FMLOCAL
814
/fakecolorsetup {
815
        /tran 256 string def
816
 
817
                tran indx
818
                red indx get 77 mul
819
                green indx get 151 mul
820
                blue indx get 28 mul
821
                add add 256 idiv put} for
822
        currenttransfer
823
        {255 mul cvi tran exch get 255.0 div}
824
        exch Fmcc settransfer
825
} bind def
826
/BITMAPCOLOR {
827
        /d 8 def
828
        gsave
829
        translate rotate scale /h exch def /w exch def
830
        /bitmapsave save def
831
        colorsetup
832
        /is w d wbytes string def
833
        /cf currentfile def
834
        w h d [w 0 0 h neg 0 h]
835
        {cf is readhexstring pop} {is} {is} true 3 colorimage
836
        bitmapsave restore
837
        grestore
838
        } bind def
839
/BITMAPCOLORc {
840
        /d 8 def
841
        gsave
842
        translate rotate scale /h exch def /w exch def
843
        /lb w d wbytes def
844
        sl lb lt {lb ms} if
845
        /bitmapsave save def
846
        colorsetup
847
        /is im 0 lb getinterval def
848
        ws 0 lb getinterval is copy pop
849
        /cf currentfile def
850
        w h d [w 0 0 h neg 0 h]
851
        {ip} {is} {is} true 3 colorimage
852
        bitmapsave restore
853
        grestore
854
        } bind def
855
/BITMAPTRUECOLORc {
856
        gsave
857
        translate rotate scale /h exch def /w exch def
858
        /bitmapsave save def
859
 
860
        /is w string def
861
 
862
        ws 0 w getinterval is copy pop
863
        /cf currentfile def
864
        w h 8 [w 0 0 h neg 0 h]
865
        {ip} {gip} {bip} true 3 colorimage
866
        bitmapsave restore
867
        grestore
868
        } bind def
869
/BITMAPTRUECOLOR {
870
        gsave
871
        translate rotate scale /h exch def /w exch def
872
        /bitmapsave save def
873
        /is w string def
874
        /gis w string def
875
        /bis w string def
876
        /cf currentfile def
877
        w h 8 [w 0 0 h neg 0 h]
878
        { cf is readhexstring pop }
879
        { cf gis readhexstring pop }
880
        { cf bis readhexstring pop }
881
        true 3 colorimage
882
        bitmapsave restore
883
        grestore
884
        } bind def
885
/BITMAPTRUEGRAYc {
886
        gsave
887
        translate rotate scale /h exch def /w exch def
888
        /bitmapsave save def
889
 
890
        /is w string def
891
 
892
        ws 0 w getinterval is copy pop
893
        /cf currentfile def
894
        w h 8 [w 0 0 h neg 0 h]
895
        {ip gip bip w gray} image
896
        bitmapsave restore
897
        grestore
898
        } bind def
899
/ww FMLOCAL
900
/r FMLOCAL
901
/g FMLOCAL
902
/b FMLOCAL
903
/i FMLOCAL
904
/gray {
905
        /ww exch def
906
        /b exch def
907
        /g exch def
908
        /r exch def
909
 
910
                        b i get .114 mul add add r i 3 -1 roll floor cvi put } for
911
        r
912
        } bind def
913
/BITMAPTRUEGRAY {
914
        gsave
915
        translate rotate scale /h exch def /w exch def
916
        /bitmapsave save def
917
        /is w string def
918
        /gis w string def
919
        /bis w string def
920
        /cf currentfile def
921
        w h 8 [w 0 0 h neg 0 h]
922
        { cf is readhexstring pop
923
          cf gis readhexstring pop
924
          cf bis readhexstring pop w gray}  image
925
        bitmapsave restore
926
        grestore
927
        } bind def
928
/BITMAPGRAY {
929
        8 {fakecolorsetup} COMMONBITMAP
930
        } bind def
931
/BITMAPGRAYc {
932
        8 {fakecolorsetup} COMMONBITMAPc
933
        } bind def
934
/ENDBITMAP {
935
        } bind def
936
end
937
        /ALDsave FMLOCAL
938
        /ALDmatrix matrix def ALDmatrix currentmatrix pop
939
/StartALD {
940
        /ALDsave save def
941
         savematrix
942
         ALDmatrix setmatrix
943
        } bind def
944
/InALD {
945
         restorematrix
946
        } bind def
947
/DoneALD {
948
         ALDsave restore
949
        } bind def
950
%%EndProlog
951
%%BeginSetup
952
(3.0) FMVERSION
953
1 1 612 792 0 1 13 FMDOCUMENT
954
 
955
1 0 /Times-Bold FMFONTDEFINE
956
2 0 /Times-Italic FMFONTDEFINE
957
3 0 /Times-Roman FMFONTDEFINE
958
4 0 /Helvetica FMFONTDEFINE
959
5 0 /Courier FMFONTDEFINE
960
6 0 /Courier-Oblique FMFONTDEFINE
961
32 FMFILLS
962
 
963
1 0.1 FMFILL
964
2 0.3 FMFILL
965
3 0.5 FMFILL
966
4 0.7 FMFILL
967
5 0.9 FMFILL
968
6 0.97 FMFILL
969
7 1 FMFILL
970
8 <0f1e3c78f0e1c387> FMFILL
971
9 <0f87c3e1f0783c1e> FMFILL
972
10 <cccccccccccccccc> FMFILL
973
11 <ffff0000ffff0000> FMFILL
974
12 <8142241818244281> FMFILL
975
13 <03060c183060c081> FMFILL
976
14 <8040201008040201> FMFILL
977
16 1 FMFILL
978
17 0.9 FMFILL
979
18 0.7 FMFILL
980
19 0.5 FMFILL
981
20 0.3 FMFILL
982
21 0.1 FMFILL
983
22 0.03 FMFILL
984
23 0 FMFILL
985
24 <f0e1c3870f1e3c78> FMFILL
986
25 <f0783c1e0f87c3e1> FMFILL
987
26 <3333333333333333> FMFILL
988
27 <0000ffff0000ffff> FMFILL
989
28 <7ebddbe7e7dbbd7e> FMFILL
990
29 <fcf9f3e7cf9f3f7e> FMFILL
991
30 <7fbfdfeff7fbfdfe> FMFILL
992
%%EndSetup
993
%%Page: "1" 1
994
%%BeginPaperSize: Letter
995
%%EndPaperSize
996
612 792 0 FMBEGINPAGE
997
98.1 675 512.1 675 2 L
998
7 X
999
 
1000
V
1001
2 H
1002
 
1003
 
1004
N
1005
98.1 450 512.1 450 2 L
1006
7 X
1007
V
1008
2 Z
1009
 
1010
N
1011
98.1 108 512.1 126 R
1012
7 X
1013
V
1014
 
1015
 
1016
(1) 506.54 119.33 T
1017
1 24 Q
1018
-0.48 (Tk4.0 Overview and Porting Guide) 152.1 605 S
1019
2 12 Q
1020
(John Ouster) 152.1 563 T
1021
(hout) 210.84 563 T
1022
98.1 135 512.1 423 R
1023
7 X
1024
V
1025
3 10 Q
1026
 
1027
(Tk version 4.0 is a major new release with many improvements, new features, and bug) 152.1 416.33 T
1028
(\336xes. This document provides an introduction to the new features and describes the most) 152.1 404.33 T
1029
-0.18 (common problems you are likely to encounter when porting scripts from Tk 3.6, the previ-) 152.1 392.33 P
1030
(ous release. This is) 152.1 380.33 T
1031
2 F
1032
(not) 230.66 380.33 T
1033
3 F
1034
( an introduction to Tk: I assume that you are already familiar with) 243.43 380.33 T
1035
(Tk 3.6 as described in the book) 152.1 368.33 T
1036
2 F
1037
(T) 279.79 368.33 T
1038
(cl and the Tk T) 284.43 368.33 T
1039
(oolkit) 343.48 368.33 T
1040
3 F
1041
(.) 366.24 368.33 T
1042
-0.26 (The good news about Tk 4.0 is that it has many improvements over Tk 3.6. Here are a) 170.1 356.33 P
1043
(few of the most important new features:) 152.1 344.33 T
1044
3 12 Q
1045
(\245) 152.1 329.33 T
1046
3 10 Q
1047
(Tk 4.0 includes a general-purpose mechanism for manipulating color images \050Tk 3.6) 162.9 329.33 T
1048
(supports only monochrome images\051.) 162.9 317.33 T
1049
3 12 Q
1050
(\245) 152.1 302.33 T
1051
3 10 Q
1052
-0.17 (The text widget in Tk 4.0 includes many new features such as tab stops, embedded win-) 162.9 302.33 P
1053
(dows, horizontal scrolling, and many new formatting options.) 162.9 290.33 T
1054
3 12 Q
1055
(\245) 152.1 275.33 T
1056
3 10 Q
1057
(The binding mechanism in Tk 4.0 is much more powerful in Tk 3.6.) 162.9 275.33 T
1058
3 12 Q
1059
(\245) 152.1 260.33 T
1060
3 10 Q
1061
(Motif compliance is much better) 162.9 260.33 T
1062
(. For example, there is now support for keyboard tra-) 292.82 260.33 T
1063
(versal and focus highlights.) 162.9 248.33 T
1064
3 12 Q
1065
(\245) 152.1 233.33 T
1066
3 10 Q
1067
(Many widgets have been improved. For example, buttons and labels can display multi-) 162.9 233.33 T
1068
(line justi\336ed text, and scales can handle real values.) 162.9 221.33 T
1069
(The bad news about Tk 4.0 is that it contains several incompatibilities with Tk 3.6.) 170.1 206.33 T
1070
(Ever since the \336rst release of Tk I have assumed that there would eventually be a major) 152.1 194.33 T
1071
(new release of Tk with substantial incompatibilities. I knew that I wouldn\325) 152.1 182.33 T
1072
(t be able to get) 450.06 182.33 T
1073
(all of the features of Tk right the \336rst time; rather than live forever with all of my early) 152.1 170.33 T
1074
(mistakes, I wanted to have a chance to correct them. Tk 4.0 is that correction. I apologize) 152.1 158.33 T
1075
-0.05 (for the incompatibilities, but I hope they improve Tk enough to justify the dif) 152.1 146.33 P
1076
-0.05 (\336culties you) 460.55 146.33 P
1077
44.1 351 98.1 423 C
1078
35.1 360 197.1 414 R
1079
7 X
1080
 
1081
V
1082
1 9 Q
1083
 
1084
(FIGURE  1) 35.1 408 T
1085
(T) 35.1 387 T
1086
(ABLE  1) 40.43 387 T
1087
26.1 351 125.1 423 R
1088
7 X
1089
V
1090
40.5 63 571.5 729 C
1091
FMENDPAGE
1092
%%EndPage: "1" 2
1093
%%Page: "2" 2
1094
612 792 0 FMBEGINPAGE
1095
 
1096
 
1097
 
1098
(2) 98.1 668.33 T
1099
4 F
1100
(Tk4.0 Overview and Porting Guide) 359.34 668.33 T
1101
98.1 660.6 512.1 660.6 2 L
1102
0.25 H
1103
 
1104
N
1105
98.1 135 512.1 639 R
1106
7 X
1107
V
1108
3 F
1109
 
1110
(encounter during porting. Tk 4.0 is a one-time correction: we will try very hard to avoid) 152.1 632.33 T
1111
(substantial incompatibilities \050especially in Tk\325) 152.1 620.3 T
1112
(s T) 337 620.3 T
1113
(cl-level interfaces\051 in future releases.) 348.79 620.3 T
1114
-0.4 (Sections 1-1) 170.1 608.3 P
1115
-0.4 (1 cover the major areas of change in Tk 4.0: bindings, focus, text widgets,) 219.02 608.3 P
1116
-0 (Motif compliance, other widget changes, images, color management, event handling, sup-) 152.1 596.26 P
1117
(port for multiple displays, the) 152.1 584.23 T
1118
5 F
1119
(send) 273.14 584.23 T
1120
3 F
1121
( command, and the selection. Section 12 summarizes) 297.13 584.23 T
1122
(several smaller changes. Section 13 lists all of the incompatibilities that af) 152.1 572.19 T
1123
(fect T) 448.4 572.19 T
1124
(cl scripts,) 471.29 572.19 T
1125
-0.02 (along with suggestions for how to deal with them. The explanations here are not intended) 152.1 560.16 P
1126
(to be comprehensive, but rather to introduce you to the issues; for complete information) 152.1 548.12 T
1127
(on new or modi\336ed commands, refer to the reference documentation that comes with the) 152.1 536.09 T
1128
(distribution.) 152.1 524.05 T
1129
98.1 480.7 512.1 483.72 C
1130
152.1 481.92 512.1 481.92 2 L
1131
0.5 H
1132
2 Z
1133
 
1134
 
1135
N
1136
98.1 482.21 143.1 482.21 2 L
1137
 
1138
N
1139
40.5 63 571.5 729 C
1140
 
1141
 
1142
 
1143
(1) 134.63 487.72 T
1144
(Bindings) 152.1 487.72 T
1145
3 10 Q
1146
-0.35 (The changes for Tk 4.0 that are most likely to af) 152.1 464.03 P
1147
-0.35 (fect existing T) 341.31 464.03 P
1148
-0.35 (cl scripts are those related to) 397.64 464.03 P
1149
(bindings. The new binding mechanism in Tk 4.0 is much more powerful than that of Tk) 152.1 452 T
1150
(3.6, particularly in the way it allows behaviors to be combined, but several incompatible) 152.1 439.96 T
1151
(changes were required to implement the new features. These changes are likely to break) 152.1 427.93 T
1152
(most Tk 3.6 scripts. Fortunately) 152.1 415.89 T
1153
(, it is relatively easy to upgrade your bindings to work) 279.16 415.89 T
1154
(under Tk 4.0.) 152.1 403.86 T
1155
-0.27 (The basic mechanism for bindings is the same as in Tk 3.6. A binding associates a T) 170.1 391.86 P
1156
-0.27 (cl) 502.65 391.86 P
1157
(script with a particular event \050or sequence of events\051 occurring in one or more windows;) 152.1 379.82 T
1158
-0.11 (the script will be invoked automatically whenever the event sequence occurs in any of the) 152.1 367.79 P
1159
-0.13 (speci\336ed windows. The Tk 4.0 binding mechanism has three major feature changes. First,) 152.1 355.75 P
1160
(there is a more general mechanism for specifying the relationship between windows and) 152.1 343.72 T
1161
(bindings, called) 152.1 331.68 T
1162
2 F
1163
(binding tags) 217.89 331.68 T
1164
3 F
1165
(. Second, the con\337ict resolution mechanism \050which is) 267.6 331.68 T
1166
(invoked when more than one binding matches an event\051 has been changed to allow more) 152.1 319.65 T
1167
(than one binding script to execute for a single event. Third, the) 152.1 307.61 T
1168
5 F
1169
(Any) 405.81 307.61 T
1170
3 F
1171
( modi\336er is now) 423.8 307.61 T
1172
(implicit in all binding patterns. These changes are discussed separately in the subsections) 152.1 295.58 T
1173
(that follow) 152.1 283.54 T
1174
(.) 195.04 283.54 T
1175
-0.16 (Overall, the main ef) 170.1 271.54 P
1176
-0.16 (fect of Tk 4.0\325) 249.37 271.54 P
1177
-0.16 (s binding changes is that it allows more bindings to) 306.06 271.54 P
1178
(trigger than Tk 3.6 does. Feedback from the T) 152.1 259.51 T
1179
(cl/Tk community about the Tk 3.6 binding) 335.71 259.51 T
1180
(mechanism indicated that it was too conservative about triggering bindings. This caused) 152.1 247.47 T
1181
(the system to lose behaviors relatively easily and made the binding structure fragile. It) 152.1 235.44 T
1182
-0.35 (appears to be easier to deal with too many binding invocations than too few) 152.1 223.4 P
1183
-0.35 (, so Tk 4.0 tries) 449.17 223.4 P
1184
(to err in this direction.) 152.1 211.37 T
1185
 
1186
(1.1) 127.41 181.37 T
1187
(Binding tags) 152.1 181.37 T
1188
3 F
1189
(In Tk 3.6 you specify the window\050s\051 for a binding in one of three ways:) 152.1 165.37 T
1190
3 12 Q
1191
(\245) 152.1 150.37 T
1192
3 10 Q
1193
(Y) 162.9 150.37 T
1194
(ou give the name of a window) 169.12 150.37 T
1195
(, such as) 289.49 150.37 T
1196
5 F
1197
(.a.b.c) 326.13 150.37 T
1198
3 F
1199
(, in which case the binding applies) 362.11 150.37 T
1200
(only to that window) 162.9 138.33 T
1201
(.) 242.49 138.33 T
1202
FMENDPAGE
1203
%%EndPage: "2" 3
1204
%%Page: "3" 3
1205
612 792 0 FMBEGINPAGE
1206
4 10 Q
1207
 
1208
 
1209
(1 Bindings) 98.1 668.33 T
1210
 
1211
(3) 506.54 668.33 T
1212
98.1 660.6 512.1 660.6 2 L
1213
0.25 H
1214
 
1215
N
1216
98.1 135 512.1 639 R
1217
7 X
1218
V
1219
3 12 Q
1220
 
1221
(\245) 152.1 632.33 T
1222
3 10 Q
1223
-0.06 (Y) 162.9 632.33 P
1224
-0.06 (ou give the name of a class, such as) 169.12 632.33 P
1225
5 F
1226
-0.15 (Button) 313.45 632.33 P
1227
3 F
1228
-0.06 (, in which case the binding applies to all) 349.43 632.33 P
1229
(the windows of that class.) 162.9 620.33 T
1230
3 12 Q
1231
(\245) 152.1 605.33 T
1232
3 10 Q
1233
(Y) 162.9 605.33 T
1234
(ou specify) 169.12 605.33 T
1235
5 F
1236
(all) 212.97 605.33 T
1237
3 F
1238
(, in which case the binding applies to all windows.) 230.96 605.33 T
1239
-0.3 (In Tk4.0 you specify the window\050s\051 using a more general mechanism called a) 170.1 590.33 P
1240
2 F
1241
-0.3 (binding) 479.35 590.33 P
1242
(tag) 152.1 578.33 T
1243
3 F
1244
(. A binding tag may be an arbitrary string, but if it starts with a \322.\323 then it must be the) 164.87 578.33 T
1245
(name of a window) 152.1 566.33 T
1246
(. If you specify a class name or) 225.56 566.33 T
1247
5 F
1248
(all) 352.4 566.33 T
1249
3 F
1250
( as a binding tag, it will usually) 370.39 566.33 T
1251
-0.1 (have the same ef) 152.1 554.33 P
1252
-0.1 (fect as in Tk 3.6, but you may also specify other strings that were not per-) 218.51 554.33 P
1253
(mitted in Tk 3.6.) 152.1 542.33 T
1254
-0.07 (Each window in Tk 4.0 has a list of binding tags. When an event occurs in a window) 170.1 530.33 P
1255
-0.07 (,) 507.17 530.33 P
1256
-0.19 (Tk fetches the window\325) 152.1 518.33 P
1257
-0.19 (s binding tags and matches the event against all of the bindings for) 245.62 518.33 P
1258
-0.09 (any of the tags. By default, the binding tags for a window consist of the window name, its) 152.1 506.33 P
1259
-0.14 (class name, the name of its nearest toplevel ancestor) 152.1 494.33 P
1260
-0.14 (, and) 359.61 494.33 P
1261
5 F
1262
-0.33 (all) 381.26 494.33 P
1263
3 F
1264
-0.14 (. For example, a button win-) 399.25 494.33 P
1265
(dow named) 152.1 482.33 T
1266
5 F
1267
(.b) 200.95 482.33 T
1268
3 F
1269
( will have the tags) 212.95 482.33 T
1270
5 9 Q
1271
(.b Button . all) 179.1 468 T
1272
3 10 Q
1273
(by default and all of the following bindings will apply to the window:) 152.1 454.33 T
1274
5 9 Q
1275
(bind .b <Enter> {identify "press here to exit"}) 179.1 440 T
1276
(bind Button <Button-Release-1> {%W invoke}) 179.1 430 T
1277
(bind all <Help> {help %W}) 179.1 420 T
1278
3 10 Q
1279
(So far) 152.1 406.33 T
1280
(, this mechanism produces the same behavior as in Tk 3.6 except that bindings cre-) 175.85 406.33 T
1281
(ated for a toplevel also apply to its descendants \050see Section 1.5 for more on this issue\051.) 152.1 394.33 T
1282
(Y) 170.1 382.33 T
1283
(ou can use the) 176.32 382.33 T
1284
5 F
1285
(bindtags) 235.71 382.33 T
1286
3 F
1287
( command to change the binding tags for a window or) 283.69 382.33 T
1288
(their order) 152.1 370.33 T
1289
(. For example, the command) 193.46 370.33 T
1290
5 9 Q
1291
(bindtags .b {.b MyButton all}) 179.1 356 T
1292
3 10 Q
1293
(will change the binding tags for) 152.1 342.33 T
1294
5 F
1295
(.b) 281.46 342.33 T
1296
3 F
1297
( to the three values in the list. This provides a simple) 293.45 342.33 T
1298
(way to make radical changes the behavior of a window) 152.1 330.33 T
1299
(. After the above command is) 371.55 330.33 T
1300
(invoked none of the) 152.1 318.33 T
1301
5 F
1302
(Button) 234.26 318.33 T
1303
3 F
1304
( class bindings will apply to) 270.24 318.33 T
1305
5 F
1306
(.b) 384.63 318.33 T
1307
3 F
1308
(. Instead, bindings for) 396.63 318.33 T
1309
5 F
1310
-0.81 (MyButton) 152.1 306.33 P
1311
3 F
1312
-0.34 ( will apply; this might give the button a totally dif) 200.07 306.33 P
1313
-0.34 (ferent set of behaviors than a) 395.88 306.33 P
1314
(normal button. In addition, the) 152.1 294.33 T
1315
5 F
1316
(bindtags) 276.75 294.33 T
1317
3 F
1318
( command removes the \322.\323 tag, so bindings on) 324.72 294.33 T
1319
(\322.\323 will not apply to) 152.1 282.33 T
1320
5 F
1321
(.b) 234.27 282.33 T
1322
3 F
1323
(.) 246.27 282.33 T
1324
(Y) 170.1 270.33 T
1325
(ou can also place additional tags on a window with the) 176.32 270.33 T
1326
5 F
1327
(bindtags) 397.55 270.33 T
1328
3 F
1329
( command to) 445.53 270.33 T
1330
(combine a number of behaviors. For example,) 152.1 258.33 T
1331
5 9 Q
1332
(bindtags .b {.b MyButton Button . all}) 179.1 244 T
1333
3 10 Q
1334
(gives) 152.1 230.33 T
1335
5 F
1336
(.b) 175.7 230.33 T
1337
3 F
1338
( the behaviors of) 187.69 230.33 T
1339
5 F
1340
(MyButton) 257.08 230.33 T
1341
3 F
1342
( bindings as well as those speci\336ed by) 305.06 230.33 T
1343
5 F
1344
(Button) 459.96 230.33 T
1345
3 F
1346
(bindings.) 152.1 218.33 T
1347
(Overall, binding tags are similar to the tag mechanisms already used internally by) 170.1 206.33 T
1348
(canvas and text widgets in Tk 3.6, except that binding tags apply to windows instead of) 152.1 194.33 T
1349
(graphical objects or textual characters.) 152.1 182.33 T
1350
FMENDPAGE
1351
%%EndPage: "3" 4
1352
%%Page: "4" 4
1353
612 792 0 FMBEGINPAGE
1354
 
1355
 
1356
 
1357
(4) 98.1 668.33 T
1358
4 F
1359
(Tk4.0 Overview and Porting Guide) 359.34 668.33 T
1360
98.1 660.6 512.1 660.6 2 L
1361
0.25 H
1362
 
1363
N
1364
98.1 135 512.1 639 R
1365
7 X
1366
V
1367
 
1368
 
1369
(1.2) 127.41 632.33 T
1370
(Con\337ict resolution) 152.1 632.33 T
1371
3 F
1372
(It is possible for several bindings to match a particular event. In Tk 3.6 at most one event) 152.1 616.33 T
1373
(is actually allowed to trigger: a set of con\337ict resolution rules determines the winner) 152.1 604.22 T
1374
(. In) 488.27 604.22 T
1375
(general, a more speci\336c binding takes precedence over a less speci\336c binding. For exam-) 152.1 592.11 T
1376
-0.27 (ple, any binding for a speci\336c widget takes precedence over any class or) 152.1 580 P
1377
5 F
1378
-0.66 (all) 439.96 580 P
1379
3 F
1380
-0.27 ( binding, and) 457.95 580 P
1381
(a binding on) 152.1 567.89 T
1382
5 F
1383
(<Control-a>) 204.57 567.89 T
1384
3 F
1385
( takes precedence over a binding on) 270.54 567.89 T
1386
5 F
1387
(<KeyPress>.) 416.24 567.89 T
1388
3 F
1389
-0.26 (The mechanism for con\337ict resolution is similar in Tk 4.0 except that one binding can) 170.1 555.89 P
1390
-0.35 (trigger for) 152.1 543.78 P
1391
2 F
1392
-0.35 (each) 194.7 543.78 P
1393
3 F
1394
-0.35 ( binding tag on the window where the event occurs. The bindings trigger in) 213.57 543.78 P
1395
(the order of the tags. Thus if button) 152.1 531.67 T
1396
5 F
1397
(.b) 296.17 531.67 T
1398
3 F
1399
( has the default binding tags, one binding for) 308.16 531.67 T
1400
5 F
1401
(.b) 489.71 531.67 T
1402
3 F
1403
(can trigger) 152.1 519.56 T
1404
(, followed by one for) 194.72 519.56 T
1405
5 F
1406
(Button) 281.32 519.56 T
1407
3 F
1408
(, followed by one for \322) 317.3 519.56 T
1409
5 F
1410
(.) 408.34 519.56 T
1411
3 F
1412
(\323, followed by one for) 414.34 519.56 T
1413
5 F
1414
(all) 152.1 507.44 T
1415
3 F
1416
(. If there are no matching bindings for a given tag then none will trigger) 170.09 507.44 T
1417
(, and if there) 456.98 507.44 T
1418
(are several matching bindings for a given tag then a single one is chosen using the same) 152.1 495.33 T
1419
(rules as in Tk 3.6.) 152.1 483.22 T
1420
(The philosophy behind binding tags in Tk 4.0 is that each binding tag corresponds to) 170.1 471.22 T
1421
(an independent behavior) 152.1 459.11 T
1422
(, so bindings with dif) 249.96 459.11 T
1423
(ferent tags should usually be additive. Sup-) 334.46 459.11 T
1424
(pose you de\336ned the following binding:) 152.1 447 T
1425
5 9 Q
1426
(bind .b <Enter> {puts "press here to exit"}) 179.1 432.67 T
1427
3 10 Q
1428
(This binding will add to the behavior de\336ned by the Button class binding for) 152.1 419 T
1429
5 F
1430
(<Enter>) 460.81 419 T
1431
3 F
1432
(.) 502.79 419 T
1433
(In Tk 3.6, the widget-speci\336c binding will replace the class binding, which will break the) 152.1 406.89 T
1434
(behavior of the button so that it no longer has normal button behavior) 152.1 394.78 T
1435
(.) 429.71 394.78 T
1436
(Sometimes there need to be interactions between binding tags. For example, you) 170.1 382.78 T
1437
(might wish to keep most of the default button behavior for) 152.1 370.67 T
1438
5 F
1439
(.b) 388.34 370.67 T
1440
3 F
1441
( but replace the default) 400.33 370.67 T
1442
(behavior for) 152.1 358.56 T
1443
5 F
1444
(<ButtonRelease>) 203.72 358.56 T
1445
3 F
1446
( with some other behavior) 293.67 358.56 T
1447
(. T) 397.49 358.56 T
1448
(o allow bindings to be) 407.9 358.56 T
1449
-0.17 (overridden, Tk 4.0 allows the) 152.1 346.44 P
1450
5 F
1451
-0.41 (break) 271.44 346.44 P
1452
3 F
1453
-0.17 ( command to be invoked from inside a binding. This) 301.43 346.44 P
1454
(causes all remaining binding tags for that binding to be skipped. Consider the following) 152.1 334.33 T
1455
(binding:) 152.1 322.22 T
1456
5 9 Q
1457
(bind .b <ButtonRelease-1> {myRelease .b; break}) 179.1 307.89 T
1458
3 10 Q
1459
-0.21 (This will cause the) 152.1 294.22 P
1460
5 F
1461
-0.5 (myRelease) 228.99 294.22 P
1462
3 F
1463
-0.21 ( procedure to be invoked, then the) 282.96 294.22 P
1464
5 F
1465
-0.5 (break) 420.28 294.22 P
1466
3 F
1467
-0.21 ( command will) 450.26 294.22 P
1468
-0.37 (cause the class binding for the event to be skipped \050assuming that the widget name appears) 152.1 282.11 P
1469
(before its class in the binding tags for) 152.1 270 T
1470
5 F
1471
(.b) 304.78 270 T
1472
3 F
1473
(\051, along with any bindings for other tags.) 316.77 270 T
1474
2 F
1475
(Note:) 119.09 254 T
1476
-0.07 (Y) 152.1 254 P
1477
-0.07 (ou cannot invoke) 156.74 254 P
1478
6 F
1479
-0.17 (break) 227.31 254 P
1480
2 F
1481
-0.07 ( fr) 257.29 254 P
1482
-0.07 (om within the) 266.02 254 P
1483
6 F
1484
-0.17 (myRelease) 322.73 254 P
1485
2 F
1486
-0.07 ( pr) 376.7 254 P
1487
-0.07 (ocedur) 387.64 254 P
1488
-0.07 (e in the above example:) 415.03 254 P
1489
-0.02 (this will generate a T) 152.1 242.89 P
1490
-0.02 (cl err) 236.05 242.89 P
1491
-0.02 (or) 257.59 242.89 P
1492
-0.02 (. However) 265.37 242.89 P
1493
-0.02 (, you can invoke the command \322) 305.31 242.89 P
1494
6 F
1495
-0.05 (return -code) 434.25 242.89 P
1496
(break) 152.1 231.78 T
1497
2 F
1498
(\323 in the pr) 182.08 231.78 T
1499
(ocedur) 223.64 231.78 T
1500
(e to achieve the same effect as the) 251.03 231.78 T
1501
6 F
1502
(break) 389.25 231.78 T
1503
2 F
1504
( in the binding script.) 419.23 231.78 T
1505
 
1506
(1.3) 127.41 202.78 T
1507
(Implicit Any) 152.1 202.78 T
1508
3 F
1509
-0.13 (In Tk 3.6 extraneous modi\336ers prevent a binding from matching an event. For example, if) 152.1 186.78 P
1510
(a binding is de\336ned for) 152.1 174.67 T
1511
5 F
1512
(<Button-1>) 247.32 174.67 T
1513
3 F
1514
( and the mouse button is pressed with the) 307.29 174.67 T
1515
5 F
1516
(Num-) 474.68 174.67 T
1517
(Lock) 152.1 162.56 T
1518
3 F
1519
( key down, then the binding will not match. If you want a binding to trigger even) 176.09 162.56 T
1520
(when extraneous modi\336ers are present, you must specify the) 152.1 150.45 T
1521
5 F
1522
(Any) 396.37 150.45 T
1523
3 F
1524
( modi\336er) 414.36 150.45 T
1525
(, as in) 450.33 150.45 T
1526
5 F
1527
(<Any-) 476.42 150.45 T
1528
(Button-1>) 152.1 138.33 T
1529
3 F
1530
(.) 206.07 138.33 T
1531
FMENDPAGE
1532
%%EndPage: "4" 5
1533
%%Page: "5" 5
1534
612 792 0 FMBEGINPAGE
1535
4 10 Q
1536
 
1537
 
1538
(1 Bindings) 98.1 668.33 T
1539
 
1540
(5) 506.54 668.33 T
1541
98.1 660.6 512.1 660.6 2 L
1542
0.25 H
1543
 
1544
N
1545
98.1 135 512.1 639 R
1546
7 X
1547
V
1548
3 F
1549
 
1550
-0.06 (In Tk 4.0, all bindings have the) 170.1 632.33 P
1551
5 F
1552
-0.15 (Any) 297.08 632.33 P
1553
3 F
1554
-0.06 ( modi\336er present implicitly) 315.08 632.33 P
1555
-0.06 (. The) 423.35 632.33 P
1556
5 F
1557
-0.15 (Any) 446.26 632.33 P
1558
3 F
1559
-0.06 ( modi\336er is) 464.25 632.33 P
1560
(still allowed for compatibility) 152.1 620.33 T
1561
(, but it has no meaning. Thus a binding for) 270.55 620.33 T
1562
5 F
1563
(<Button-1>) 443.23 620.33 T
1564
3 F
1565
(will match a button press event even if) 152.1 608.33 T
1566
5 F
1567
(NumLock) 309.21 608.33 T
1568
3 F
1569
(,) 351.19 608.33 T
1570
5 F
1571
(Shift) 356.19 608.33 T
1572
3 F
1573
(,) 386.17 608.33 T
1574
5 F
1575
(Control) 391.17 608.33 T
1576
3 F
1577
(, or any combina-) 433.15 608.33 T
1578
(tion of them. If you wish for a binding not to trigger when a modi\336er is present, you can) 152.1 596.33 T
1579
(just de\336ne an empty binding for that modi\336er combination. For example,) 152.1 584.33 T
1580
5 9 Q
1581
(bind .b <Control-ButtonPress-1> {# this script is a no-op}) 179.1 570 T
1582
3 10 Q
1583
(creates a binding that will trigger on mouse button presses when the) 152.1 556.33 T
1584
5 F
1585
(Control) 426.36 556.33 T
1586
3 F
1587
( key is) 468.34 556.33 T
1588
-0.22 (down. If there is also a) 152.1 544.33 P
1589
5 F
1590
-0.52 (<ButtonPress-1>) 244.35 544.33 P
1591
3 F
1592
-0.22 ( binding for) 334.3 544.33 P
1593
5 F
1594
-0.52 (.b) 383.35 544.33 P
1595
3 F
1596
-0.22 (, it will no longer be invoked) 395.34 544.33 P
1597
-0.02 (if the) 152.1 532.33 P
1598
5 F
1599
-0.05 (Control) 175.37 532.33 P
1600
3 F
1601
-0.02 ( key is down, due to the con\337ict resolution rules. The script for the above) 217.35 532.33 P
1602
(binding is just a T) 152.1 520.33 T
1603
(cl comment, so it has no ef) 223.59 520.33 T
1604
(fect when it is invoked. Alternatively) 330.84 520.33 T
1605
(, you) 478.98 520.33 T
1606
(could use) 152.1 508.33 T
1607
5 F
1608
(%s) 192.63 508.33 T
1609
3 F
1610
( in the binding script to extract the modi\336er state, then test to see that only) 204.62 508.33 T
1611
(desired modi\336ers are present.) 152.1 496.33 T
1612
 
1613
(1.4) 127.41 466.33 T
1614
(Porting problems: widget bindings vs. class bindings) 152.1 466.33 T
1615
3 F
1616
-0.38 (Y) 152.1 450.33 P
1617
-0.38 (ou are likely to encounter two problems with bindings when you port Tk 3.6 scripts to Tk) 158.32 450.33 P
1618
-0.18 (4.0: widget bindings vs. class bindings, and events on top-level windows. This section dis-) 152.1 438.33 P
1619
(cusses the \336rst problem and the following section discusses the second problem.) 152.1 426.33 T
1620
(In Tk 3.6, if a widget-speci\336c binding matches an event then no class binding will) 170.1 414.33 T
1621
-0.15 (trigger for the event; in Tk 4.0 both bindings will trigger) 152.1 402.33 P
1622
-0.15 (. Because of this change, you will) 375.75 402.33 P
1623
-0.09 (need to modify most of your widget-speci\336c bindings in one of two ways. If a widget-spe-) 152.1 390.33 P
1624
(ci\336c binding in Tk 3.6 was intended to supplement the class binding, this could only be) 152.1 378.33 T
1625
(done by duplicating the code of the class binding in the widget binding script. This dupli-) 152.1 366.33 T
1626
-0.02 (cated code is no longer necessary in Tk 4.0 and will probably interfere with the new class) 152.1 354.33 P
1627
(bindings in Tk 4.0; you should remove the duplicated class code, leaving only the widget-) 152.1 342.33 T
1628
(speci\336c code in the binding script. If a widget-speci\336c binding in Tk 3.6 was intended to) 152.1 330.33 T
1629
-0.17 (override the class binding, this will no longer occur by default in Tk 4.0; you should add a) 152.1 318.33 P
1630
5 F
1631
-0.54 (break) 152.1 306.33 P
1632
3 F
1633
-0.22 ( command at the end of the binding script to prevent the class binding from trigger-) 182.08 306.33 P
1634
(ing. If a widget binding in Tk 3.6 didn\325) 152.1 294.33 T
1635
(t con\337ict with a class binding, then you will not) 308.49 294.33 T
1636
(need to modify it for Tk 4.0. For example, a widget binding for) 152.1 282.33 T
1637
5 F
1638
(<Help>) 407.49 282.33 T
1639
3 F
1640
( in a text widget) 443.47 282.33 T
1641
(would not need to be modi\336ed, since it doesn\325) 152.1 270.33 T
1642
(t con\337ict with a class binding.) 336.53 270.33 T
1643
 
1644
(1.5) 127.41 240.33 T
1645
(Porting problems: events on top-levels) 152.1 240.33 T
1646
3 F
1647
-0.26 (The second binding problem you are likely to encounter in porting Tk 3.6 scripts to Tk 4.0) 152.1 224.33 P
1648
(is that in Tk 4.0 a binding on a toplevel will match events on any of the internal windows) 152.1 212.33 T
1649
(within that top-level. For example, suppose you have a binding created as follows:) 152.1 200.33 T
1650
5 9 Q
1651
(toplevel .t) 179.1 186 T
1652
(button .t.b1 ...) 179.1 176 T
1653
(button .t.b2 ...) 179.1 166 T
1654
(bind .t <Enter> action) 179.1 156 T
1655
FMENDPAGE
1656
%%EndPage: "5" 6
1657
%%Page: "6" 6
1658
612 792 0 FMBEGINPAGE
1659
 
1660
 
1661
 
1662
(6) 98.1 668.33 T
1663
4 F
1664
(Tk4.0 Overview and Porting Guide) 359.34 668.33 T
1665
98.1 660.6 512.1 660.6 2 L
1666
0.25 H
1667
 
1668
N
1669
98.1 135 512.1 639 R
1670
7 X
1671
V
1672
3 F
1673
 
1674
-0.27 (This binding will trigger not only when the mouse enters) 152.1 632.33 P
1675
5 F
1676
-0.64 (.t) 379.29 632.33 P
1677
3 F
1678
-0.27 (, but also when it enters either) 391.28 632.33 P
1679
5 F
1680
(.t.b1) 152.1 620.33 T
1681
3 F
1682
( or) 182.08 620.33 T
1683
5 F
1684
(.t.b2) 195.41 620.33 T
1685
3 F
1686
(. This is because the binding tags for a window include its nearest) 225.39 620.33 T
1687
(ancestor toplevel by default. The toplevel is present in the binding tags to make it easy to) 152.1 608.33 T
1688
(set up accelerator keys that apply in all the windows of a panel. For example,) 152.1 596.33 T
1689
5 9 Q
1690
(bind .t <Control-a> {controlAProc %W}) 179.1 582 T
1691
3 10 Q
1692
(will cause) 152.1 568.33 T
1693
5 F
1694
(controlAProc) 194.85 568.33 T
1695
3 F
1696
( to be invoked whenever) 266.81 568.33 T
1697
5 F
1698
(Control-a) 367.56 568.33 T
1699
3 F
1700
( is typed in any of the) 421.53 568.33 T
1701
-0.12 (windows in) 152.1 556.33 P
1702
5 F
1703
-0.29 (.t) 200.72 556.33 P
1704
3 F
1705
-0.12 (. The procedure will receive the name of the focus window as its ar) 212.71 556.33 P
1706
-0.12 (gument.) 479.62 556.33 P
1707
(Unfortunately) 170.1 544.33 T
1708
(, if you have created bindings on toplevel windows in your Tk 3.6) 225.52 544.33 T
1709
-0.16 (scripts, they probably expect to trigger only for events in the toplevel, so the bindings will) 152.1 532.33 P
1710
(misbehave under Tk 4.0. Fortunately you can reproduce the behavior of Tk 3.6 by using) 152.1 520.33 T
1711
(the) 152.1 508.33 T
1712
5 F
1713
(%W) 166.81 508.33 T
1714
3 F
1715
( substitution in the binding script. For example, to ensure that) 178.8 508.33 T
1716
5 F
1717
(action) 427.28 508.33 T
1718
3 F
1719
( is invoked) 463.26 508.33 T
1720
(only for) 152.1 496.33 T
1721
5 F
1722
(Enter) 186.52 496.33 T
1723
3 F
1724
( events in a toplevel window itself, create the following binding in place) 216.51 496.33 T
1725
(of the one above:) 152.1 484.33 T
1726
5 9 Q
1727
(bind .t <Enter> {) 179.1 470 T
1728
(if {"%W" == ".t"} {) 200.63 460 T
1729
(action) 222.23 450 T
1730
(}) 200.63 440 T
1731
(}) 179.1 430 T
1732
3 10 Q
1733
-0.01 (When an) 152.1 416.33 P
1734
5 F
1735
-0.03 (Enter) 190.38 416.33 P
1736
3 F
1737
-0.01 ( event occurs in a descendant of) 220.36 416.33 P
1738
5 F
1739
-0.03 (.t) 350.45 416.33 P
1740
3 F
1741
-0.01 ( such as) 362.45 416.33 P
1742
5 F
1743
-0.03 (.t.x) 396.56 416.33 P
1744
3 F
1745
-0.01 (, a binding for) 420.54 416.33 P
1746
5 F
1747
-0.03 (Enter) 479.63 416.33 P
1748
3 F
1749
(in) 152.1 404.33 T
1750
5 F
1751
(.t.x) 162.37 404.33 T
1752
3 F
1753
( will trigger \336rst, if there is one. Then the above binding will trigger) 186.36 404.33 T
1754
(. Since) 457.58 404.33 T
1755
5 F
1756
(%W) 487.29 404.33 T
1757
3 F
1758
(will be substituted with) 152.1 392.33 T
1759
5 F
1760
(.t.x) 248.17 392.33 T
1761
3 F
1762
(, the) 272.15 392.33 T
1763
5 F
1764
(if) 291.86 392.33 T
1765
3 F
1766
( condition will not be satis\336ed and the binding will) 303.86 392.33 T
1767
(not do anything.) 152.1 380.33 T
1768
-0.14 ( An alternative solution is to remove the toplevel window from the binding tags of all) 170.1 368.33 P
1769
-0.12 (its internal windows. However) 152.1 356.33 P
1770
-0.12 (, this means that you won\325) 274.03 356.33 P
1771
-0.12 (t be able to take advantage of the) 378.73 356.33 P
1772
(tag to create key bindings that apply everywhere within the toplevel.) 152.1 344.33 T
1773
 
1774
(1.6) 127.41 314.33 T
1775
(Internal bindings in canvases and texts) 152.1 314.33 T
1776
3 F
1777
(The same changes in con\337ict resolution described in Section 1.2 also apply to bindings) 152.1 298.33 T
1778
-0.05 (created internally for the items of a canvas or the tags of a text widget. If a canvas item or) 152.1 286.33 P
1779
-0.29 (character of text has multiple tags, then one binding can trigger for each tag on each event.) 152.1 274.33 P
1780
-0.32 (The bindings trigger in the priority order of the tags. Similar porting problems are likely to) 152.1 262.33 P
1781
-0.19 (occur as described in Section 1.4; if a binding for one tag needs to override that of another) 152.1 250.33 P
1782
(tag, you\325ll need to add a) 152.1 238.33 T
1783
5 F
1784
(break) 251.2 238.33 T
1785
3 F
1786
( command under Tk 4.0; if a binding for one tag dupli-) 281.18 238.33 T
1787
-0.28 (cated the code from another tag\325) 152.1 226.33 P
1788
-0.28 (s binding, so that they will compose in Tk 3.6, you\325ll have) 279.76 226.33 P
1789
(to remove the duplicated code in Tk 4.0.) 152.1 214.33 T
1790
FMENDPAGE
1791
%%EndPage: "6" 7
1792
%%Page: "7" 7
1793
612 792 0 FMBEGINPAGE
1794
4 10 Q
1795
 
1796
 
1797
(2 Focus management) 98.1 668.33 T
1798
 
1799
(7) 506.54 668.33 T
1800
98.1 660.6 512.1 660.6 2 L
1801
0.25 H
1802
 
1803
N
1804
98.1 135 512.1 639 R
1805
7 X
1806
V
1807
98.1 623.98 512.1 627 C
1808
152.1 625.2 512.1 625.2 2 L
1809
0.5 H
1810
2 Z
1811
 
1812
 
1813
N
1814
98.1 625.49 143.1 625.49 2 L
1815
 
1816
N
1817
40.5 63 571.5 729 C
1818
 
1819
 
1820
 
1821
(2) 134.63 631 T
1822
(Focus management) 152.1 631 T
1823
3 10 Q
1824
(The input focus is another area where Tk 4.0 contains major changes. Fortunately) 152.1 607.31 T
1825
(, the) 477.87 607.31 T
1826
-0.09 (focus changes should not require as many modi\336cations to your Tk 3.6 scripts as the bind-) 152.1 595.31 P
1827
(ing changes.) 152.1 583.31 T
1828
 
1829
(2.1) 127.41 553.31 T
1830
(One focus window per toplevel) 152.1 553.31 T
1831
3 F
1832
(Tk 3.6 only keeps track of a single focus window for each application, and this results in) 152.1 537.31 T
1833
(two problems. First, it doesn\325) 152.1 525.31 T
1834
(t allow an application to use multiple displays since this) 269.64 525.31 T
1835
-0.16 (could result in multiple simultaneous focus windows, one on each display) 152.1 513.31 P
1836
-0.16 (. Second, the Tk) 444.99 513.31 P
1837
(3.6 model doesn\325) 152.1 501.31 T
1838
(t work very well for applications that have multiple toplevels: when the) 221.04 501.31 T
1839
(mouse moves from one toplevel to another) 152.1 489.31 T
1840
(, the focus window should switch to whatever) 322.7 489.31 T
1841
-0.24 (window had the focus the last time the mouse was in the new toplevel, but Tk 3.6 does not) 152.1 477.31 P
1842
(remember this information.) 152.1 465.31 T
1843
(Tk 4.0 corrects both of these problems. It remembers one focus window for each) 170.1 453.31 T
1844
(toplevel, which can be queried with the) 152.1 441.31 T
1845
5 F
1846
(focus -lastfor) 311.98 441.31 T
1847
3 F
1848
( command. When the win-) 395.94 441.31 T
1849
(dow manager gives the focus to a toplevel window \050because the mouse entered the win-) 152.1 429.31 T
1850
(dow or because you clicked on the window) 152.1 417.31 T
1851
(, depending on the focus model being used by) 324.38 417.31 T
1852
(the window manager\051, Tk passes the focus on to the remembered window) 152.1 405.31 T
1853
(. Several win-) 446.23 405.31 T
1854
(dows in an application can have the focus at the same time, one on each display the appli-) 152.1 393.31 T
1855
(cation is using. When asking for the current focus window in the) 152.1 381.31 T
1856
5 F
1857
(focus) 413.31 381.31 T
1858
3 F
1859
( command, you) 443.29 381.31 T
1860
(can use the) 152.1 369.31 T
1861
5 F
1862
(-displayof) 199 369.31 T
1863
3 F
1864
( switch to specify a particular display) 258.97 369.31 T
1865
(.) 407.66 369.31 T
1866
(When you set the focus to a window with the) 170.1 357.31 T
1867
5 F
1868
(focus) 353.31 357.31 T
1869
3 F
1870
( command, Tk remembers that) 383.29 357.31 T
1871
(window as the most recent focus window for its toplevel. In addition, if the application) 152.1 345.31 T
1872
(currently has the focus for the window\325) 152.1 333.31 T
1873
(s display) 309.2 333.31 T
1874
(, Tk moves the focus to the speci\336ed win-) 343.82 333.31 T
1875
-0.35 (dow; this can be used, for example to move the focus to a dialog when the dialog is posted,) 152.1 321.31 P
1876
(or to perform keyboard traversal among the toplevels of an application. If the application) 152.1 309.31 T
1877
(doesn\325) 152.1 297.31 T
1878
(t currently have the focus for the display) 178.57 297.31 T
1879
(, then Tk will not normally take the focus) 339.74 297.31 T
1880
(from its current owner) 152.1 285.31 T
1881
(. However) 241.2 285.31 T
1882
(, you can specify the) 282.43 285.31 T
1883
5 F
1884
(-force) 367.36 285.31 T
1885
3 F
1886
( ar) 403.34 285.31 T
1887
(gument to) 413.43 285.31 T
1888
5 F
1889
(focus) 456.18 285.31 T
1890
3 F
1891
( to) 486.17 285.31 T
1892
(insist that Tk grab the focus for this application \050in general this is probably not a good) 152.1 273.31 T
1893
(idea, since it may clash with the window manager) 152.1 261.31 T
1894
(\325) 352.05 261.31 T
1895
(s focus policy\051.) 354.83 261.31 T
1896
 
1897
(2.2) 127.41 231.31 T
1898
(Keyboard traversal) 152.1 231.31 T
1899
3 F
1900
-0.38 (Tk 4.0 has a much more complete implementation of keyboard traversal than Tk 3.6. In Tk) 152.1 215.31 P
1901
(3.6 there is built-in support only for keyboard traversal of menus. In Tk 4.0 keyboard tra-) 152.1 203.31 T
1902
(versal is implemented for all widgets. Y) 152.1 191.31 T
1903
(ou can type) 311.27 191.31 T
1904
5 F
1905
(Tab) 359.85 191.31 T
1906
3 F
1907
( to move the focus among the) 377.84 191.31 T
1908
-0.4 (windows within a toplevel and) 152.1 179.31 P
1909
5 F
1910
-0.95 (Shift+Tab) 275.31 179.31 P
1911
3 F
1912
-0.4 ( to move in the reverse direction. The order of) 329.28 179.31 P
1913
-0.11 (traversal is de\336ned by the stacking order of widgets, with the lowest widget \336rst in the tra-) 152.1 167.31 P
1914
(versal order) 152.1 155.31 T
1915
(. All Tk widgets now provide a) 199 155.31 T
1916
5 F
1917
(-takefocus) 326.14 155.31 T
1918
3 F
1919
( option, which determines) 386.11 155.31 T
1920
FMENDPAGE
1921
%%EndPage: "7" 8
1922
%%Page: "8" 8
1923
612 792 0 FMBEGINPAGE
1924
 
1925
 
1926
 
1927
(8) 98.1 668.33 T
1928
4 F
1929
(Tk4.0 Overview and Porting Guide) 359.34 668.33 T
1930
98.1 660.6 512.1 660.6 2 L
1931
0.25 H
1932
 
1933
N
1934
98.1 135 512.1 639 R
1935
7 X
1936
V
1937
3 F
1938
 
1939
(whether the window should accept the focus during traversal or be skipped. This option) 152.1 632.33 T
1940
(has several features; see the) 152.1 620.33 T
1941
5 F
1942
(options.n) 265.61 620.33 T
1943
3 F
1944
( manual entry for details.) 319.58 620.33 T
1945
(All of the Tk widgets provide a traversal highlight ring as required by Motif. The) 170.1 608.33 T
1946
(highlight ring turns dark when the widget has the input focus. Its size and colors are con-) 152.1 596.33 T
1947
(trolled by the) 152.1 584.33 T
1948
5 F
1949
(-highlightthickness) 207.9 584.33 T
1950
3 F
1951
(,) 321.84 584.33 T
1952
5 F
1953
(-highlightbackground) 326.83 584.33 T
1954
3 F
1955
(, and) 446.77 584.33 T
1956
5 F
1957
(-) 152.1 572.33 T
1958
(highlightcolor) 158.1 572.33 T
1959
3 F
1960
( options. Y) 242.05 572.33 T
1961
(ou may notice that widgets appear to have extra space) 285.2 572.33 T
1962
(around them in Tk 4.0; this is due to the traversal highlight ring, which is normally the) 152.1 560.33 T
1963
(same color as the background for widgets.) 152.1 548.33 T
1964
 
1965
(2.3) 127.41 518.33 T
1966
(Support for focus-follows-mouse) 152.1 518.33 T
1967
3 F
1968
(Both Tk 3.6 and Tk 4.0 use an) 152.1 502.33 T
1969
2 F
1970
(explicit focus model) 275.91 502.33 T
1971
3 F
1972
( within a toplevel. This means that) 355.86 502.33 T
1973
(moving the mouse among the windows of a toplevel does not normally move the focus;) 152.1 490.33 T
1974
-0.06 (you have to click or perform some other action \050such as pressing) 152.1 478.33 P
1975
5 F
1976
-0.15 (Tab) 412.26 478.33 P
1977
3 F
1978
-0.06 (\051 to move the focus.) 430.25 478.33 P
1979
(Tk 3.6 has no support for an) 152.1 466.33 T
1980
2 F
1981
(implicit focus model) 267.58 466.33 T
1982
3 F
1983
( where the window under the mouse) 348.64 466.33 T
1984
(always has the focus. In Tk 4.0 you can invoke the library procedure) 152.1 454.33 T
1985
5 F
1986
(tk_focusFol-) 428.83 454.33 T
1987
(lowsMouse) 152.1 442.33 T
1988
3 F
1989
( to switch to an implicit focus model; in this mode whenever the mouse) 206.07 442.33 T
1990
(enters a new window the focus will switch to that window) 152.1 430.33 T
1991
(.) 384.07 430.33 T
1992
 
1993
(2.4) 127.41 400.33 T
1994
(No default focus window) 152.1 400.33 T
1995
(, no \322none\323 focus.) 269.45 400.33 T
1996
3 F
1997
-0.16 (Tk 3.6 has the notion of a default focus window) 152.1 384.33 P
1998
-0.16 (, which receives the focus if the focus win-) 341.56 384.33 P
1999
(dow is deleted. It is also possible for an application to abandon the input focus by setting) 152.1 372.33 T
2000
(the focus to) 152.1 360.33 T
2001
5 F
2002
(none) 201.23 360.33 T
2003
3 F
2004
(. In Tk 4.0 both of these features have been eliminated. There is no) 225.22 360.33 T
2005
(default focus window) 152.1 348.33 T
2006
(, and the focus can never be explicitly abandoned. If the focus win-) 238.05 348.33 T
2007
(dow is destroyed, Tk resets the input focus to the toplevel containing the old focus win-) 152.1 336.33 T
2008
(dow) 152.1 324.33 T
2009
(. If the toplevel is destroyed, the window manager will reclaim the focus and move it) 168.66 324.33 T
2010
(elsewhere.) 152.1 312.33 T
2011
-0.18 (If you really want to abandon the focus in Tk 4.0 so that keyboard events are ignored,) 170.1 300.33 P
2012
(you can create a dummy window with no key bindings \050set its binding tags to an empty) 152.1 288.33 T
2013
(string to be sure\051, make sure that is never mapped, and give it the input focus.) 152.1 276.33 T
2014
 
2015
(2.5) 127.41 246.33 T
2016
(Better focus events) 152.1 246.33 T
2017
3 F
2018
-0.13 (Tk 3.6 has a quirky event model for) 152.1 230.33 P
2019
5 F
2020
-0.32 (FocusIn) 296.77 230.33 P
2021
3 F
2022
-0.13 ( and) 338.75 230.33 P
2023
5 F
2024
-0.32 (FocusOut) 357.92 230.33 P
2025
3 F
2026
-0.13 ( events: when the window) 405.89 230.33 P
2027
-0.23 (manager gives the focus to a toplevel, Tk generates a) 152.1 218.33 P
2028
5 F
2029
-0.55 (FocusIn) 364.36 218.33 P
2030
3 F
2031
-0.23 ( event for the toplevel and) 406.33 218.33 P
2032
(another) 152.1 206.33 T
2033
5 F
2034
(FocusIn) 184.57 206.33 T
2035
3 F
2036
( event for the focus window) 226.55 206.33 T
2037
(, but no events for any other windows.) 337.76 206.33 T
2038
(When the window manager moves the focus somewhere else,) 152.1 194.33 T
2039
5 F
2040
(FocusOut) 400.79 194.33 T
2041
3 F
2042
( events are gen-) 448.77 194.33 T
2043
-0 (erated for these same two windows. In Tk 4.0,) 152.1 182.33 P
2044
5 F
2045
-0 (FocusIn) 339.73 182.33 P
2046
3 F
2047
-0 ( and) 381.71 182.33 P
2048
5 F
2049
-0 (FocusOut) 401.13 182.33 P
2050
3 F
2051
-0 ( events are gen-) 449.11 182.33 P
2052
-0.26 (erated in the same way as) 152.1 170.33 P
2053
5 F
2054
-0.63 (Enter) 255.43 170.33 P
2055
3 F
2056
-0.26 ( and) 285.41 170.33 P
2057
5 F
2058
-0.63 (Leave) 304.31 170.33 P
2059
3 F
2060
-0.26 ( events: when the focus arrives, a) 334.29 170.33 P
2061
5 F
2062
-0.63 (FocusIn) 467.89 170.33 P
2063
3 F
2064
-0.05 (event is generated for each window from the toplevel down to the focus window) 152.1 158.33 P
2065
-0.05 (, with dif-) 472.5 158.33 P
2066
FMENDPAGE
2067
%%EndPage: "8" 9
2068
%%Page: "9" 9
2069
612 792 0 FMBEGINPAGE
2070
4 10 Q
2071
 
2072
 
2073
(3 T) 98.1 668.33 T
2074
(ext widgets) 111.43 668.33 T
2075
 
2076
(9) 506.54 668.33 T
2077
98.1 660.6 512.1 660.6 2 L
2078
0.25 H
2079
 
2080
N
2081
98.1 135 512.1 639 R
2082
7 X
2083
V
2084
3 F
2085
 
2086
-0.33 (ferent detail \336elds for dif) 152.1 632.33 P
2087
-0.33 (ferent windows \050see Xlib documentation for information on these) 250.53 632.33 P
2088
(values\051. The reverse happens when the focus leaves a window) 152.1 620.33 T
2089
(.) 399.57 620.33 T
2090
 
2091
(2.6) 127.41 590.33 T
2092
(Porting issues) 152.1 590.33 T
2093
3 F
2094
(If you didn\325) 152.1 574.33 T
2095
(t have any special focus-related code in Tk 3.6, then you shouldn\325) 199.66 574.33 T
2096
(t need to) 462.9 574.33 T
2097
(make any changes for 4.0; things will just work better) 152.1 562.33 T
2098
(. If you wrote code in Tk 3.6 to get) 366.96 562.33 T
2099
(around the weaknesses with its focus mechanism, then you should remove most or all of) 152.1 550.33 T
2100
(that code. For example, if you implemented keyboard traversal yourself, or if you built) 152.1 538.33 T
2101
(your own mechanism to remember a separate focus window for each toplevel and give it) 152.1 526.33 T
2102
(the input focus whenever the toplevel gets the focus, you can simply remove this code,) 152.1 514.33 T
2103
-0.33 (since Tk 4.0 performs these functions for you. If you wrote code that depends on the weird) 152.1 502.33 P
2104
-0.03 (event model in Tk 3.6, that code will need to be rewritten for Tk 4.0. The Tk 4.0 model is) 152.1 490.33 P
2105
(general enough to duplicate any ef) 152.1 478.33 T
2106
(fects that were possible in Tk 3.6.) 289.86 478.33 T
2107
98.1 434.98 512.1 438 C
2108
152.1 436.2 512.1 436.2 2 L
2109
0.5 H
2110
2 Z
2111
 
2112
 
2113
N
2114
98.1 436.49 143.1 436.49 2 L
2115
 
2116
N
2117
40.5 63 571.5 729 C
2118
 
2119
 
2120
 
2121
(3) 134.63 442 T
2122
(T) 152.1 442 T
2123
(ext widgets) 158.54 442 T
2124
3 10 Q
2125
(T) 152.1 418.31 T
2126
(ext widgets have under) 157.51 418.31 T
2127
(gone a major overhaul for Tk 4.0 and they have improved in) 249.76 418.31 T
2128
(many ways. The changes to text widgets are almost entirely upward-compatible from Tk) 152.1 406.31 T
2129
(3.6.) 152.1 394.31 T
2130
 
2131
(3.1) 127.41 364.31 T
2132
(Embedded windows.) 152.1 364.31 T
2133
3 F
2134
(Tk 3.6 supported two kinds of annotations in texts: marks and tags. In Tk 4.0 a third kind) 152.1 348.31 T
2135
-0.04 (of annotation is available: an embedded window) 152.1 336.31 P
2136
-0.04 (. This allows you to embed other widgets) 344.99 336.31 P
2137
(inside a text widget, mixed in with the text. The text widget acts as a geometry manager) 152.1 324.31 T
2138
(for these windows, laying them out and wrapping them just as if each embedded window) 152.1 312.31 T
2139
(were a single character in the text. Y) 152.1 300.31 T
2140
(ou can even have texts with nothing in them but) 297.64 300.31 T
2141
(embedded windows. The) 152.1 288.31 T
2142
5 F
2143
(window) 254.8 288.31 T
2144
3 F
2145
( widget command for text widgets provides several) 290.78 288.31 T
2146
(options to manage embedded windows.) 152.1 276.31 T
2147
 
2148
(3.2) 127.41 246.31 T
2149
(More options for tags.) 152.1 246.31 T
2150
3 F
2151
(In Tk 4.0 tags support many new options providing additional control over how informa-) 152.1 230.31 T
2152
(tion is displayed. Here is a summary of the new options:) 152.1 218.31 T
2153
3 12 Q
2154
(\245) 152.1 203.31 T
2155
3 10 Q
2156
(Y) 162.9 203.31 T
2157
(ou can now specify tab stops with the) 169.12 203.31 T
2158
5 F
2159
(-tabs) 321.79 203.31 T
2160
3 F
2161
( option. Each tab stop can use left, cen-) 351.78 203.31 T
2162
(ter) 162.9 191.31 T
2163
(, right, or numeric justi\336cation. T) 173.04 191.31 T
2164
(ab stops can also be speci\336ed for the widget as a) 305.6 191.31 T
2165
(whole.) 162.9 179.31 T
2166
3 12 Q
2167
(\245) 152.1 164.31 T
2168
3 10 Q
2169
(Y) 162.9 164.31 T
2170
(ou can specify justi\336cation \050left, center or right\051 with the) 169.12 164.31 T
2171
5 F
2172
(-justify) 398.12 164.31 T
2173
3 F
2174
( option.) 446.09 164.31 T
2175
FMENDPAGE
2176
%%EndPage: "9" 10
2177
%%Page: "10" 10
2178
612 792 0 FMBEGINPAGE
2179
 
2180
 
2181
 
2182
(10) 98.1 668.33 T
2183
4 F
2184
(Tk4.0 Overview and Porting Guide) 359.34 668.33 T
2185
98.1 660.6 512.1 660.6 2 L
2186
0.25 H
2187
 
2188
N
2189
98.1 135 512.1 639 R
2190
7 X
2191
V
2192
3 12 Q
2193
 
2194
(\245) 152.1 632.33 T
2195
3 10 Q
2196
(Y) 162.9 632.33 T
2197
(ou can now specify line spacing with three options,) 169.12 632.33 T
2198
5 F
2199
(-spacing1) 376.75 632.33 T
2200
3 F
2201
(,) 430.72 632.33 T
2202
5 F
2203
(-spacing2) 435.72 632.33 T
2204
3 F
2205
(, and) 489.69 632.33 T
2206
5 F
2207
(-) 162.9 620.2 T
2208
(spacing3) 168.9 620.2 T
2209
3 F
2210
(, which control the spacing above a line, between wrapped lines, and) 216.87 620.2 T
2211
(below a line.) 162.9 608.06 T
2212
3 12 Q
2213
(\245) 152.1 593.06 T
2214
3 10 Q
2215
(Y) 162.9 593.06 T
2216
(ou can now specify mar) 169.12 593.06 T
2217
(gins with the) 264.41 593.06 T
2218
5 F
2219
(-lmargin1) 318.55 593.06 T
2220
3 F
2221
(,) 372.52 593.06 T
2222
5 F
2223
(-lmargin2) 377.52 593.06 T
2224
3 F
2225
(, and) 431.49 593.06 T
2226
5 F
2227
(-rmargin) 453.42 593.06 T
2228
3 F
2229
(options.) 162.9 580.92 T
2230
3 12 Q
2231
(\245) 152.1 565.92 T
2232
3 10 Q
2233
-0.25 (Y) 162.9 565.92 P
2234
-0.25 (ou can now adjust the vertical position of text \050e.g. for superscripts or subscripts\051 with) 169.12 565.92 P
2235
(the) 162.9 553.79 T
2236
5 F
2237
(-offset) 177.61 553.79 T
2238
3 F
2239
( option.) 219.59 553.79 T
2240
3 12 Q
2241
(\245) 152.1 538.79 T
2242
3 10 Q
2243
-0.03 (Y) 162.9 538.79 P
2244
-0.03 (ou can now specify the wrapping style \050word wrapping, character wrapping, or none\051) 169.12 538.79 P
2245
(with the) 162.9 526.65 T
2246
5 F
2247
(-wrap) 197.88 526.65 T
2248
3 F
2249
( option.) 227.86 526.65 T
2250
3 12 Q
2251
(\245) 152.1 511.65 T
2252
3 10 Q
2253
(Y) 162.9 511.65 T
2254
(ou can now request overstriking with the) 169.12 511.65 T
2255
5 F
2256
(-overstrike) 334.83 511.65 T
2257
3 F
2258
( option.) 400.8 511.65 T
2259
 
2260
(3.3) 127.41 481.65 T
2261
(Bindings) 152.1 481.65 T
2262
3 F
2263
-0.19 (The default bindings for text widgets have been completely rewritten in Tk 4.0. They now) 152.1 465.65 P
2264
(support almost all of the Motif behavior \050everything except add mode and secondary) 152.1 453.52 T
2265
-0.36 (selections\051. They also include a substantial subset of the Emacs bindings for cursor motion) 152.1 441.38 P
2266
(and basic editing. The) 152.1 429.24 T
2267
5 F
2268
(tk_strictMotif) 242.87 429.24 T
2269
3 F
2270
( variable disables the Emacs bindings.) 326.82 429.24 T
2271
 
2272
(3.4) 127.41 399.24 T
2273
(Miscellaneous new features) 152.1 399.24 T
2274
3 F
2275
(In addition to the major changes described above, text widgets also include the following) 152.1 383.24 T
2276
(new features:) 152.1 371.11 T
2277
1 F
2278
(Horizontal scr) 162.9 356.11 T
2279
(olling) 224.07 356.11 T
2280
3 F
2281
(. T) 247.95 356.11 T
2282
(ext widgets can now be scrolled horizontally as well as verti-) 258.36 356.11 T
2283
(cally) 162.9 343.97 T
2284
(, using the) 181.68 343.97 T
2285
5 F
2286
(-) 225.55 343.97 T
2287
(xscrollcommand) 231.54 343.97 T
2288
3 F
2289
( option and the) 315.5 343.97 T
2290
5 F
2291
(xview) 377.68 343.97 T
2292
3 F
2293
( widget command.) 407.67 343.97 T
2294
1 F
2295
(Sear) 162.9 328.97 T
2296
(ching) 182.15 328.97 T
2297
3 F
2298
(. T) 205.48 328.97 T
2299
(ext widgets have a new) 215.88 328.97 T
2300
5 F
2301
(search) 311.64 328.97 T
2302
3 F
2303
( widget command, which provides ef) 347.62 328.97 T
2304
(\336-) 495.67 328.97 T
2305
-0.19 (cient searching of text widgets using either exact matching, glob-style matching, or reg-) 162.9 316.83 P
2306
(ular expressions. Y) 162.9 304.7 T
2307
(ou can search forwards or backwards.) 238.79 304.7 T
2308
1 F
2309
(Mark gravity) 162.9 289.7 T
2310
3 F
2311
(. In Tk 3.6 marks always had \322right gravity\323, which means they stick to) 219.71 289.7 T
2312
(the character on the right side of the mark; if you insert at the position of a mark, the) 162.9 277.56 T
2313
-0.1 (new character goes before the mark. In Tk 4.0 you can specify whether marks have left) 162.9 265.42 P
2314
(or right gravity) 162.9 253.29 T
2315
(.) 222.77 253.29 T
2316
1 F
2317
(Scr) 162.9 238.29 T
2318
(een information) 177.15 238.29 T
2319
3 F
2320
(. In Tk 4.0 there are two new widget commands for text widgets) 245.16 238.29 T
2321
(that return information about the screen layout. The) 162.9 226.15 T
2322
5 F
2323
(dlineinfo) 371.92 226.15 T
2324
3 F
2325
( widget command) 425.89 226.15 T
2326
(returns the bounding box of a display line \050all the information displayed on one line of) 162.9 214.02 T
2327
(the window) 162.9 201.88 T
2328
(, which may be either a whole line of text or a partial line if wrapping has) 209.16 201.88 T
2329
(occurred\051. The) 162.9 189.74 T
2330
5 F
2331
(bbox) 224.23 189.74 T
2332
3 F
2333
( widget command returns the screen area occupied by a single) 248.21 189.74 T
2334
(character) 162.9 177.61 T
2335
(.) 198.97 177.61 T
2336
1 F
2337
(Extended insert command) 162.9 162.61 T
2338
3 F
2339
(. The) 275.06 162.61 T
2340
5 F
2341
(insert) 298.1 162.61 T
2342
3 F
2343
( widget command now supports an addi-) 334.08 162.61 T
2344
-0.32 (tional ar) 162.9 150.47 P
2345
-0.32 (gument giving a list of tags to apply to the new characters. Y) 195.43 150.47 P
2346
-0.32 (ou can also include) 434 150.47 P
2347
(several text and tag ar) 162.9 138.33 T
2348
(guments in a single) 250.42 138.33 T
2349
5 F
2350
(insert) 330.38 138.33 T
2351
3 F
2352
( command.) 366.36 138.33 T
2353
FMENDPAGE
2354
%%EndPage: "10" 11
2355
%%Page: "11" 11
2356
612 792 0 FMBEGINPAGE
2357
4 10 Q
2358
 
2359
 
2360
(4 Better Motif compliance) 98.1 668.33 T
2361
 
2362
(1) 501.54 668.33 T
2363
(1) 506.54 668.33 T
2364
98.1 660.6 512.1 660.6 2 L
2365
0.25 H
2366
 
2367
N
2368
98.1 135 512.1 639 R
2369
7 X
2370
V
2371
1 F
2372
 
2373
(See command) 162.9 632.33 T
2374
3 F
2375
(. There is a new) 222.03 632.33 T
2376
5 F
2377
(see) 288.08 632.33 T
2378
3 F
2379
( widget command, which adjusts the view in the) 306.07 632.33 T
2380
(widget if needed to ensure that a particular character is visible in the window) 162.9 620.29 T
2381
(.) 470.07 620.29 T
2382
 
2383
(3.5) 127.41 590.29 T
2384
(Porting issues: tag stickiness, change in end) 152.1 590.29 T
2385
3 F
2386
(There are two changes in text widgets that may require modi\336cations to Tk 3.6 scripts.) 152.1 574.29 T
2387
-0.06 (The \336rst change has to do with tag stickiness. In Tk 3.6, tags are sticky to the right: if you) 152.1 562.24 P
2388
(insert new text just after a tagged range, the new text acquires the tags of the preceding) 152.1 550.19 T
2389
(character) 152.1 538.14 T
2390
(. If you insert text before a tagged range in Tk 3.6, the new characters do not) 188.17 538.14 T
2391
-0.34 (acquire the tags of the range. In Tk 4.0, tags are not sticky on either side: new text acquires) 152.1 526.09 P
2392
(a tag from surrounding characters only if the tag is present on both sides of the insertion) 152.1 514.05 T
2393
(position. The sticky behavior in Tk 3.6 was rarely useful and special code was often) 152.1 502 T
2394
(needed to work around it. Y) 152.1 489.95 T
2395
(ou should be able to eliminate this code in Tk 4.0.) 263.24 489.95 T
2396
(The second incompatible change in text widgets is that the index) 170.1 477.95 T
2397
5 F
2398
(end) 431.32 477.95 T
2399
3 F
2400
( now refers to) 449.31 477.95 T
2401
-0.14 (the position just after the \336nal newline in the text, whereas in Tk 3.6 it referred to the posi-) 152.1 465.9 P
2402
-0.1 (tion just before the \336nal newline. This makes it possible to apply tags to the \336nal newline,) 152.1 453.86 P
2403
(which was not possible in Tk 3.6, but you may need to modify your scripts if you depend) 152.1 441.81 T
2404
(on the old position of) 152.1 429.76 T
2405
5 F
2406
(end) 240.11 429.76 T
2407
3 F
2408
(.) 258.1 429.76 T
2409
98.1 386.4 512.1 389.43 C
2410
152.1 387.63 512.1 387.63 2 L
2411
0.5 H
2412
2 Z
2413
 
2414
 
2415
N
2416
98.1 387.92 143.1 387.92 2 L
2417
 
2418
N
2419
40.5 63 571.5 729 C
2420
 
2421
 
2422
 
2423
(4) 134.63 393.43 T
2424
(Better Motif compliance) 152.1 393.43 T
2425
3 10 Q
2426
(All of the widgets have been modi\336ed in Tk 4.0 to improve their Motif compliance. This) 152.1 369.74 T
2427
-0.3 (was done by adding features that were missing and reworking the bindings to comply with) 152.1 357.69 P
2428
(Motif conventions. I believe that the widgets are now completely Motif compliant except) 152.1 345.64 T
2429
(for the following missing features:) 152.1 333.6 T
2430
3 12 Q
2431
(\245) 152.1 318.6 T
2432
3 10 Q
2433
(There is no support for secondary selections.) 162.9 318.6 T
2434
3 12 Q
2435
(\245) 152.1 303.6 T
2436
3 10 Q
2437
(There is no support for \322add mode\323 in widgets such as texts and listboxes.) 162.9 303.6 T
2438
3 12 Q
2439
(\245) 152.1 288.6 T
2440
3 10 Q
2441
(There is no support for drag and drop.) 162.9 288.6 T
2442
-0.02 (Please let me know if you \336nd any other discrepancies between the Tk widgets and Motif) 152.1 273.59 P
2443
(widgets. W) 152.1 261.55 T
2444
(e plan to eliminate the remaining incompatibilities over the next year or two.) 196.82 261.55 T
2445
98.1 218.19 512.1 221.21 C
2446
152.1 219.41 512.1 219.41 2 L
2447
0.5 H
2448
2 Z
2449
 
2450
 
2451
N
2452
98.1 219.7 143.1 219.7 2 L
2453
 
2454
N
2455
40.5 63 571.5 729 C
2456
 
2457
 
2458
 
2459
(5) 134.63 225.21 T
2460
(W) 152.1 225.21 T
2461
(idget changes) 163.31 225.21 T
2462
3 10 Q
2463
-0.07 (All of the Tk 4.0 widgets have been improved over their 3.6 counterparts, mostly in small) 152.1 201.52 P
2464
-0.23 (and backwards compatible ways. Here is a summary of the widget improvements; see Sec-) 152.1 189.48 P
2465
(tion 13 for information about incompatible changes.) 152.1 177.43 T
2466
3 12 Q
2467
(\245) 152.1 162.43 T
2468
3 10 Q
2469
(All widgets now have a) 162.9 162.43 T
2470
5 F
2471
(cget) 259.78 162.43 T
2472
3 F
2473
( command, which provides an easier way to retrieve the) 283.76 162.43 T
2474
(value of a con\336guration option. In other situations where con\336guration options are) 162.9 150.38 T
2475
(used, such as for menu entries or text tags, a) 162.9 138.33 T
2476
5 F
2477
(cget) 342.21 138.33 T
2478
3 F
2479
( command is also available.) 366.2 138.33 T
2480
FMENDPAGE
2481
%%EndPage: "11" 12
2482
%%Page: "12" 12
2483
612 792 0 FMBEGINPAGE
2484
 
2485
 
2486
 
2487
(12) 98.1 668.33 T
2488
4 F
2489
(Tk4.0 Overview and Porting Guide) 359.34 668.33 T
2490
98.1 660.6 512.1 660.6 2 L
2491
0.25 H
2492
 
2493
N
2494
98.1 135 512.1 639 R
2495
7 X
2496
V
2497
3 12 Q
2498
 
2499
(\245) 152.1 632.33 T
2500
3 10 Q
2501
-0.22 (All widgets now have) 162.9 632.33 P
2502
5 F
2503
-0.53 (-highlightthickness) 251.96 632.33 P
2504
3 F
2505
-0.22 (,) 365.9 632.33 P
2506
5 F
2507
-0.53 (-highlightbackground) 370.68 632.33 P
2508
3 F
2509
-0.22 (, and) 490.61 632.33 P
2510
5 F
2511
(-) 162.9 620.33 T
2512
(highlightcolor) 168.9 620.33 T
2513
3 F
2514
( options for displaying a highlight ring when the widget \050or one) 252.85 620.33 T
2515
(of its descendants\051 has the input focus.) 162.9 608.33 T
2516
3 12 Q
2517
(\245) 152.1 593.33 T
2518
3 10 Q
2519
(Entry widgets now support justi\336cation and provide a) 162.9 593.33 T
2520
5 F
2521
(-show) 379.99 593.33 T
2522
3 F
2523
( option for \050not\051 display-) 409.97 593.33 T
2524
(ing passwords. They will autosize to \336t their text if) 162.9 581.33 T
2525
5 F
2526
(-width 0) 369.17 581.33 T
2527
3 F
2528
( is speci\336ed.) 417.14 581.33 T
2529
3 12 Q
2530
(\245) 152.1 566.33 T
2531
3 10 Q
2532
-0.16 (The label/button family of widgets now supports multiline text and justi\336cation, includ-) 162.9 566.33 P
2533
(ing new options) 162.9 554.33 T
2534
5 F
2535
(-wraplength) 229.25 554.33 T
2536
3 F
2537
( and) 295.22 554.33 T
2538
5 F
2539
(-justify) 314.65 554.33 T
2540
3 F
2541
(.  These features make the message) 361.97 554.33 T
2542
-0.04 (widget obsolete. There is also a new) 162.9 542.33 P
2543
5 F
2544
-0.1 (-underline) 310.27 542.33 P
2545
3 F
2546
-0.04 ( option for highlighting a character) 370.23 542.33 P
2547
(for keyboard traversal.) 162.9 530.33 T
2548
3 12 Q
2549
(\245) 152.1 515.33 T
2550
3 10 Q
2551
-0.23 (Listboxes now support all of the Motif selection modes, including single selection, mul-) 162.9 515.33 P
2552
(tiple selection, and multiple disjoint selections, via the) 162.9 503.33 T
2553
5 F
2554
(-selectmode) 382.78 503.33 T
2555
3 F
2556
( option. They) 448.74 503.33 T
2557
(will autosize to \336t their contents if) 162.9 491.33 T
2558
5 F
2559
(-width 0) 302.54 491.33 T
2560
3 F
2561
( or) 350.52 491.33 T
2562
5 F
2563
(-height 0) 363.84 491.33 T
2564
3 F
2565
( is speci\336ed. There are) 417.81 491.33 T
2566
(new) 162.9 479.33 T
2567
5 F
2568
(see) 182.05 479.33 T
2569
3 F
2570
(,) 200.04 479.33 T
2571
5 F
2572
(bbox) 205.04 479.33 T
2573
3 F
2574
(, and) 229.02 479.33 T
2575
5 F
2576
(activate) 250.95 479.33 T
2577
3 F
2578
( widget commands.) 298.92 479.33 T
2579
3 12 Q
2580
(\245) 152.1 464.33 T
2581
3 10 Q
2582
(Canvas polygons now support) 162.9 464.33 T
2583
5 F
2584
(-outline) 286.16 464.33 T
2585
3 F
2586
( and) 334.14 464.33 T
2587
5 F
2588
(-width) 353.57 464.33 T
2589
3 F
2590
( options for drawing outlines.) 389.55 464.33 T
2591
3 12 Q
2592
(\245) 152.1 449.33 T
2593
3 10 Q
2594
-0.03 (Scale widgets now support real values as well as integers \050see the) 162.9 449.33 P
2595
5 F
2596
-0.08 (-resolution) 426.77 449.33 P
2597
3 F
2598
-0.03 ( and) 492.73 449.33 P
2599
5 F
2600
-0.54 (-digits) 162.9 437.33 P
2601
3 F
2602
-0.22 ( options\051, and they have a) 204.88 437.33 P
2603
5 F
2604
-0.54 (-variable) 308.73 437.33 P
2605
3 F
2606
-0.22 ( option to link to a T) 362.7 437.33 P
2607
-0.22 (cl variable. They) 442.83 437.33 P
2608
-0.28 (have two new widget commands,) 162.9 425.33 P
2609
5 F
2610
-0.67 (coords) 297.52 425.33 P
2611
3 F
2612
-0.28 ( and) 333.5 425.33 P
2613
5 F
2614
-0.67 (identify) 352.37 425.33 P
2615
3 F
2616
-0.28 (, and their bindings are now) 399.69 425.33 P
2617
(de\336ned in T) 162.9 413.33 T
2618
(cl rather than being hardwired in C code as in Tk 3.6.) 210.5 413.33 T
2619
3 12 Q
2620
(\245) 152.1 398.33 T
2621
3 10 Q
2622
(Scrollbar widgets now have a new interface to the controlling widget, which provides) 162.9 398.33 T
2623
-0.04 (more \337exibility than the old style \050but the old style is still supported for compatibility\051.) 162.9 386.33 P
2624
(There is a new option) 162.9 374.33 T
2625
5 F
2626
(-jump) 252 374.33 T
2627
3 F
2628
( to prevent continuous updates while dragging the slider) 281.98 374.33 T
2629
(,) 505.88 374.33 T
2630
-0.24 (and a new option) 162.9 362.33 P
2631
5 F
2632
-0.59 (-elementborderwidth) 232.98 362.33 P
2633
3 F
2634
-0.24 ( to control the border width of the arrows) 346.92 362.33 P
2635
(and slider separately from the widget\325) 162.9 350.33 T
2636
(s outer border) 314.18 350.33 T
2637
(. There are four new widget com-) 369.14 350.33 T
2638
(mands,) 162.9 338.33 T
2639
5 F
2640
(activate) 193.99 338.33 T
2641
3 F
2642
(,) 241.97 338.33 T
2643
5 F
2644
(delta) 246.96 338.33 T
2645
3 F
2646
(,) 276.95 338.33 T
2647
5 F
2648
(fraction) 281.95 338.33 T
2649
3 F
2650
(, and) 329.92 338.33 T
2651
5 F
2652
(identify) 351.85 338.33 T
2653
3 F
2654
(, and the default bindings) 399.17 338.33 T
2655
(are now de\336ned in T) 162.9 326.33 T
2656
(cl rather than being hardwired in C code as in Tk 3.6.) 244.91 326.33 T
2657
3 12 Q
2658
(\245) 152.1 311.33 T
2659
3 10 Q
2660
-0.13 (Menu entries now have several new con\336guration options such as) 162.9 311.33 P
2661
5 F
2662
-0.31 (-foreground) 426.97 311.33 P
2663
3 F
2664
-0.13 ( and) 492.93 311.33 P
2665
5 F
2666
-0.41 (-) 162.9 299.33 P
2667
-0.41 (indicatoron) 168.9 299.33 P
2668
3 F
2669
-0.17 (, and tear) 234.86 299.33 P
2670
-0.17 (-of) 271.23 299.33 P
2671
-0.17 (f menus have been reimplemented to be more Motif-like.) 282.7 299.33 P
2672
(New menu entries can be created in the middle of a menu using the) 162.9 287.33 T
2673
5 F
2674
(insert) 434.36 287.33 T
2675
3 F
2676
( widget) 470.34 287.33 T
2677
(command, and there is a) 162.9 275.33 T
2678
5 F
2679
(type) 262.83 275.33 T
2680
3 F
2681
( widget command that returns the type of a menu entry) 286.81 275.33 T
2682
(.) 505.45 275.33 T
2683
3 12 Q
2684
(\245) 152.1 260.33 T
2685
3 10 Q
2686
(Menubuttons now have a) 162.9 260.33 T
2687
5 F
2688
(-indicatoron) 266.16 260.33 T
2689
3 F
2690
( option for displaying an option menu indi-) 338.12 260.33 T
2691
-0.38 (cator) 162.9 248.33 P
2692
-0.38 (. There is now support for option menus via the) 182.33 248.33 P
2693
5 F
2694
-0.91 (tk_optionMenu) 370.9 248.33 P
2695
3 F
2696
-0.38 ( procedure, and) 448.86 248.33 P
2697
(popups are simpli\336ed with the) 162.9 236.33 T
2698
5 F
2699
(tk_popup) 286.44 236.33 T
2700
3 F
2701
( procedure.) 334.42 236.33 T
2702
3 12 Q
2703
(\245) 152.1 221.33 T
2704
3 10 Q
2705
-0.03 (The variable) 162.9 221.33 P
2706
5 F
2707
-0.07 (tk_strictMotif) 215.57 221.33 P
2708
3 F
2709
-0.03 ( is used in more places to enforce even stricter Motif) 299.53 221.33 P
2710
(compliance.) 162.9 209.33 T
2711
FMENDPAGE
2712
%%EndPage: "12" 13
2713
%%Page: "13" 13
2714
612 792 0 FMBEGINPAGE
2715
4 10 Q
2716
 
2717
 
2718
(6 Images) 98.1 668.33 T
2719
 
2720
(13) 500.99 668.33 T
2721
98.1 660.6 512.1 660.6 2 L
2722
0.25 H
2723
 
2724
N
2725
98.1 135 512.1 639 R
2726
7 X
2727
V
2728
98.1 623.98 512.1 627 C
2729
152.1 625.2 512.1 625.2 2 L
2730
0.5 H
2731
2 Z
2732
 
2733
 
2734
N
2735
98.1 625.49 143.1 625.49 2 L
2736
 
2737
N
2738
40.5 63 571.5 729 C
2739
 
2740
 
2741
 
2742
(6) 134.63 631 T
2743
(Images) 152.1 631 T
2744
3 10 Q
2745
(Tk 4.0 contains a general-purpose image mechanism for displaying color pictures and) 152.1 607.31 T
2746
(other complex objects. There is a new command,) 152.1 595.26 T
2747
5 F
2748
(image) 350.84 595.26 T
2749
3 F
2750
(, which may be used to create) 380.82 595.26 T
2751
(image objects. For example, the command) 152.1 583.21 T
2752
5 9 Q
2753
(image create photo myFace -f) 179.1 568.88 T
2754
(ile picture.ppm) 330.09 568.88 T
2755
3 10 Q
2756
(creates a new image named) 152.1 555.21 T
2757
5 F
2758
(myFace) 264.5 555.21 T
2759
3 F
2760
(. The image is of type) 300.48 555.21 T
2761
5 F
2762
(photo) 390.14 555.21 T
2763
3 F
2764
( \050a full-color represen-) 420.12 555.21 T
2765
(tation that dithers on monochrome or color) 152.1 543.17 T
2766
(-mapped displays\051 and the source data for the) 323.46 543.17 T
2767
(image is in the \336le named) 152.1 531.12 T
2768
5 F
2769
(picture.ppm) 257.59 531.12 T
2770
3 F
2771
(. Once an image has been created, it can be) 323.56 531.12 T
2772
-0.15 (used in many dif) 152.1 519.07 P
2773
-0.15 (ferent places by specifying a) 218.37 519.07 P
2774
5 F
2775
-0.36 (-image) 334.46 519.07 P
2776
3 F
2777
-0.15 ( option. For example, the command) 370.44 519.07 P
2778
5 9 Q
2779
(label .l -image myFace) 179.1 504.74 T
2780
3 10 Q
2781
(will create a label widget that displays the image, and if) 152.1 491.07 T
2782
5 F
2783
(.c) 377.5 491.07 T
2784
3 F
2785
( is a canvas widget the com-) 389.49 491.07 T
2786
(mand) 152.1 479.02 T
2787
5 9 Q
2788
(.c create image 400 200 -image myFace) 179.1 464.69 T
2789
3 10 Q
2790
(will create an image item in the canvas that displays) 152.1 451.02 T
2791
5 F
2792
(myFace) 363.06 451.02 T
2793
3 F
2794
(.) 399.04 451.02 T
2795
(The image mechanism provides a great deal of \337exibility:) 170.1 439.02 T
2796
3 12 Q
2797
(\245) 152.1 424.02 T
2798
3 10 Q
2799
-0.18 (Once an image has been de\336ned, it can be used in many dif) 162.9 424.02 P
2800
-0.18 (ferent places, even on dif) 397.84 424.02 P
2801
-0.18 (fer-) 497.68 424.02 P
2802
(ent displays.) 162.9 411.98 T
2803
3 12 Q
2804
(\245) 152.1 396.98 T
2805
3 10 Q
2806
(Images provide image commands, analogous to widget commands, that can be used to) 162.9 396.98 T
2807
(manipulate the image; any changes in an image are automatically re\337ected in all of its) 162.9 384.93 T
2808
(instances.) 162.9 372.88 T
2809
3 12 Q
2810
(\245) 152.1 357.88 T
2811
3 10 Q
2812
-0.21 (There can be many dif) 162.9 357.88 P
2813
-0.21 (ferent types of images. Tk 4.0 has two built-in types,) 251.78 357.88 P
2814
5 F
2815
-0.51 (photo) 463.11 357.88 P
2816
3 F
2817
-0.21 ( and) 493.1 357.88 P
2818
5 F
2819
(bitmap) 162.9 345.83 T
2820
3 F
2821
(. Other image types can be de\336ned in C as extensions \050see the documentation) 198.88 345.83 T
2822
-0.16 (for the) 162.9 333.79 P
2823
5 F
2824
-0.39 (Tk_CreateImageType) 191.44 333.79 P
2825
3 F
2826
-0.16 ( library procedure\051. The photo image type was imple-) 299.38 333.79 P
2827
(mented by Paul Mackerras, based on his earlier photo widget.) 162.9 321.74 T
2828
3 12 Q
2829
(\245) 152.1 306.74 T
2830
3 10 Q
2831
(W) 162.9 306.74 T
2832
(ithin the photo image type, there can be many dif) 171.93 306.74 T
2833
(ferent \336le formats. In Tk 4.0, only) 368.29 306.74 T
2834
-0.11 (PPM, PGM, and GIF formats are built-in, but other formats can be added as extensions) 162.9 294.69 P
2835
(\050see the documentation for the) 162.9 282.64 T
2836
5 F
2837
(Tk_CreatePhotoImageFormat) 286.97 282.64 T
2838
3 F
2839
( library proce-) 436.89 282.64 T
2840
(dure\051. Readers for XPM, TIFF) 162.9 270.59 T
2841
(, and others are available from the T) 284.23 270.59 T
2842
(cl community) 428.41 270.59 T
2843
(.) 483.01 270.59 T
2844
98.1 227.24 512.1 230.26 C
2845
152.1 228.46 512.1 228.46 2 L
2846
0.5 H
2847
2 Z
2848
 
2849
 
2850
N
2851
98.1 228.75 143.1 228.75 2 L
2852
 
2853
N
2854
40.5 63 571.5 729 C
2855
 
2856
 
2857
 
2858
(7) 134.63 234.26 T
2859
(Color management) 152.1 234.26 T
2860
3 10 Q
2861
(Tk 3.6 suf) 152.1 210.57 T
2862
(fers from a relatively weak mechanism for managing colors. It uses only the) 192.73 210.57 T
2863
(default colormap for a screen, and if all the entries in that colormap \336ll up then Tk) 152.1 198.52 T
2864
(switches to monochrome mode and \322rounds\323 all future colors to black or white. This) 152.1 186.48 T
2865
(approach is becoming increasingly unpleasant because of applications such as Frame and) 152.1 174.43 T
2866
(W) 152.1 162.38 T
2867
(eb browsers that use up all the entries in the default colormap.) 160.74 162.38 T
2868
(Tk 4.0 has a much more powerful color management mechanism. If a colormap \336lls) 170.1 150.38 T
2869
(up, Tk allocates future colors by picking the closest match from the available colors, so) 152.1 138.33 T
2870
FMENDPAGE
2871
%%EndPage: "13" 14
2872
%%Page: "14" 14
2873
612 792 0 FMBEGINPAGE
2874
 
2875
 
2876
 
2877
(14) 98.1 668.33 T
2878
4 F
2879
(Tk4.0 Overview and Porting Guide) 359.34 668.33 T
2880
98.1 660.6 512.1 660.6 2 L
2881
0.25 H
2882
 
2883
N
2884
98.1 135 512.1 639 R
2885
7 X
2886
V
2887
3 F
2888
 
2889
(that it need not revert to monochrome mode. Tk also manages colors better by delaying) 152.1 632.33 T
2890
-0.3 (color allocation until colors are actually needed; in many cases, such as 3D borders, colors) 152.1 620.33 P
2891
(are never needed. When colors are scarce Tk changes the way it displays beveled borders) 152.1 608.33 T
2892
-0.38 (so that it uses stippling instead of additional colors for the light and dark shadows. Y) 152.1 596.33 P
2893
-0.38 (ou can) 484.01 596.33 P
2894
(\336nd out whether a colormap has \336lled up using the new command) 152.1 584.33 T
2895
5 F
2896
(winfo colormap-) 418.59 584.33 T
2897
(full) 152.1 572.33 T
2898
3 F
2899
(.) 176.09 572.33 T
2900
-0.26 (Tk 4.0 also allows you to allocate new colormaps for toplevel and frame widgets with) 170.1 560.33 P
2901
(the) 152.1 548.33 T
2902
5 F
2903
(-colormap) 166.81 548.33 T
2904
3 F
2905
( option, and you change the visual type in these widgets \050with the) 220.78 548.33 T
2906
5 F
2907
(-) 152.1 536.33 T
2908
(visual) 158.1 536.33 T
2909
3 F
2910
( option\051 to take advantage of visuals other than the default visual for a screen.) 194.08 536.33 T
2911
(New commands) 152.1 524.33 T
2912
5 F
2913
(winfo visualsavailable) 219.27 524.33 T
2914
3 F
2915
( and) 351.2 524.33 T
2916
5 F
2917
(wm colormapwindows) 370.63 524.33 T
2918
3 F
2919
( have) 478.57 524.33 T
2920
(been added to help manage colormaps and visuals.) 152.1 512.33 T
2921
(The default color scheme in Tk 4.0 has changed from a tan palette \050\322bisque\323\051 to a) 170.1 500.33 T
2922
(gray palette, which seems to becoming standard for Motif. There is a new T) 152.1 488.33 T
2923
(cl procedure) 454.78 488.33 T
2924
5 F
2925
-0.36 (tk_setPalette) 152.1 476.33 P
2926
3 F
2927
-0.15 ( that changes the palette of an application on the \337y) 230.06 476.33 P
2928
-0.15 (, and there is also a) 433.89 476.33 P
2929
(procedure) 152.1 464.33 T
2930
5 F
2931
(tk_bisque) 194.56 464.33 T
2932
3 F
2933
( to restore the palette to the old bisque colors.) 248.53 464.33 T
2934
(The Tk 3.6 color model mechanism is no longer necessary so it has been removed in) 170.1 452.33 T
2935
(Tk 4.0. If you want to \336nd out whether a screen is monochrome or color) 152.1 440.33 T
2936
(, you cannot use) 440.38 440.33 T
2937
(the) 152.1 428.33 T
2938
5 F
2939
(tk colormodel) 166.81 428.33 T
2940
3 F
2941
( command anymore; use) 244.77 428.33 T
2942
5 F
2943
(winfo depth) 345.25 428.33 T
2944
3 F
2945
( instead.) 411.22 428.33 T
2946
98.1 384.98 512.1 388 C
2947
152.1 386.2 512.1 386.2 2 L
2948
0.5 H
2949
2 Z
2950
 
2951
 
2952
N
2953
98.1 386.49 143.1 386.49 2 L
2954
 
2955
N
2956
40.5 63 571.5 729 C
2957
 
2958
 
2959
 
2960
(8) 134.63 392 T
2961
(Event handling: \336leevent and after) 152.1 392 T
2962
3 10 Q
2963
(Tk 4.0 contains several improvements in the area of event handling besides those already) 152.1 368.31 T
2964
(mentioned for bindings:) 152.1 356.31 T
2965
3 12 Q
2966
(\245) 152.1 341.31 T
2967
3 10 Q
2968
(There is a new command) 162.9 341.31 T
2969
5 F
2970
(f) 265.87 341.31 T
2971
(ileevent) 271.87 341.31 T
2972
3 F
2973
( for performing event-driven I/O to and from) 319.84 341.31 T
2974
-0.12 (\336les. The) 162.9 329.31 P
2975
5 F
2976
-0.29 (f) 202.35 329.31 P
2977
-0.29 (ileevent) 208.35 329.31 P
2978
3 F
2979
-0.12 ( command is modelled very closely after Mark Diekhans\325) 256.33 329.31 P
2980
5 F
2981
-0.29 (add-) 488.11 329.31 P
2982
(input) 162.9 317.31 T
2983
3 F
2984
( extension, which has been used widely with Tk 3.6.) 192.88 317.31 T
2985
3 12 Q
2986
(\245) 152.1 302.31 T
2987
3 10 Q
2988
-0.34 (The) 162.9 302.31 P
2989
5 F
2990
-0.82 (after) 180.6 302.31 P
2991
3 F
2992
-0.34 ( command has two new options,) 210.58 302.31 P
2993
5 F
2994
-0.82 (idle) 339.82 302.31 P
2995
3 F
2996
-0.34 ( and) 363.81 302.31 P
2997
5 F
2998
-0.82 (cancel) 382.55 302.31 P
2999
3 F
3000
-0.34 (.) 418.53 302.31 P
3001
5 F
3002
-0.82 (After idle) 423.19 302.31 P
3003
3 F
3004
-0.34 ( can be) 482.33 302.31 P
3005
-0.2 (used to schedule a script as an \322idle handler\323, which means it runs the next time that Tk) 162.9 290.31 P
3006
(enters the event loop and \336nds no work to do.) 162.9 278.31 T
3007
5 F
3008
(After cancel) 348.06 278.31 T
3009
3 F
3010
( may be used to delete) 420.02 278.31 T
3011
(a previously-scheduled) 162.9 266.31 T
3012
5 F
3013
(after) 257.83 266.31 T
3014
3 F
3015
( script, so that it will no longer be invoked.) 287.81 266.31 T
3016
98.1 222.95 512.1 225.98 C
3017
152.1 224.18 512.1 224.18 2 L
3018
0.5 H
3019
2 Z
3020
 
3021
 
3022
N
3023
98.1 224.46 143.1 224.46 2 L
3024
 
3025
N
3026
40.5 63 571.5 729 C
3027
 
3028
 
3029
 
3030
(9) 134.63 229.98 T
3031
(Multiple displays) 152.1 229.98 T
3032
3 10 Q
3033
(Although Tk has always allowed a single application to open windows on several dis-) 152.1 206.29 T
3034
(plays, the support for multiple displays is weak in Tk 3.6. For example, many of the bind-) 152.1 194.29 T
3035
(ings break if users work simultaneously in windows on dif) 152.1 182.29 T
3036
(ferent displays, and) 385.94 182.29 T
3037
(mechanisms like the selection and the input focus have insuf) 152.1 170.29 T
3038
(\336cient support for multiple) 394.26 170.29 T
3039
(displays.) 152.1 158.29 T
3040
FMENDPAGE
3041
%%EndPage: "14" 15
3042
%%Page: "15" 15
3043
612 792 0 FMBEGINPAGE
3044
4 10 Q
3045
 
3046
 
3047
(10 The send command) 98.1 668.33 T
3048
 
3049
(15) 500.99 668.33 T
3050
98.1 660.6 512.1 660.6 2 L
3051
0.25 H
3052
 
3053
N
3054
98.1 135 512.1 639 R
3055
7 X
3056
V
3057
3 F
3058
 
3059
-0.33 (Tk 4.0 contains numerous modi\336cations to improve the handling of multiple displays.) 170.1 632.33 P
3060
-0.18 (Several commands, such as) 152.1 620.24 P
3061
5 F
3062
-0.44 (selection) 263.78 620.24 P
3063
3 F
3064
-0.18 (,) 317.76 620.24 P
3065
5 F
3066
-0.44 (send) 322.57 620.24 P
3067
3 F
3068
-0.18 (, and) 346.55 620.24 P
3069
5 F
3070
-0.44 (focus) 368.12 620.24 P
3071
3 F
3072
-0.18 (, have a new) 398.1 620.24 P
3073
5 F
3074
-0.44 (-displayof) 449.82 620.24 P
3075
3 F
3076
(ar) 152.1 608.15 T
3077
(gument so that you can select a particular display) 159.69 608.15 T
3078
(. In addition, the bindings have been) 356.12 608.15 T
3079
(reworked to handle interactions occurring simultaneously on dif) 152.1 596.05 T
3080
(ferent displays. W) 408.13 596.05 T
3081
(ith Tk) 480.73 596.05 T
3082
(4.0 it should be possible to create applications that really use multiple displays gracefully) 152.1 583.96 T
3083
(.) 508.44 583.96 T
3084
98.1 540.6 512.1 543.63 C
3085
152.1 541.83 512.1 541.83 2 L
3086
0.5 H
3087
2 Z
3088
 
3089
 
3090
N
3091
98.1 542.12 143.1 542.12 2 L
3092
 
3093
N
3094
40.5 63 571.5 729 C
3095
 
3096
 
3097
 
3098
(10) 127.96 547.63 T
3099
(The send command) 152.1 547.63 T
3100
3 10 Q
3101
-0.2 (The) 152.1 523.94 P
3102
5 F
3103
-0.48 (send) 169.94 523.94 P
3104
3 F
3105
-0.2 ( command has been completely overhauled for Tk 4.0 to eliminate several prob-) 193.93 523.94 P
3106
(lems in Tk 3.6 and add a number of new features:) 152.1 511.85 T
3107
3 12 Q
3108
(\245) 152.1 496.85 T
3109
3 10 Q
3110
(Tk 3.6 aborts a) 162.9 496.85 T
3111
5 F
3112
(send) 225.36 496.85 T
3113
3 F
3114
( command if no response is received within 5 seconds; this made) 249.34 496.85 T
3115
(it very dif) 162.9 484.75 T
3116
(\336cult to invoke long-running commands. Tk 4.0 eliminates the timeout  and) 202.14 484.75 T
3117
(uses a dif) 162.9 472.66 T
3118
(ferent mechanism to tell if the tar) 200.47 472.66 T
3119
(get application has crashed.) 333.53 472.66 T
3120
3 12 Q
3121
(\245) 152.1 457.66 T
3122
3 10 Q
3123
-0.36 (The) 162.9 457.66 P
3124
5 F
3125
-0.87 (winfo interps) 180.58 457.66 P
3126
3 F
3127
-0.36 ( command no longer returns the names of applications that have) 257.66 457.66 P
3128
(exited or crashed.) 162.9 445.57 T
3129
3 12 Q
3130
(\245) 152.1 430.57 T
3131
3 10 Q
3132
(Asynchronous sends are possible using the) 162.9 430.57 T
3133
5 F
3134
(-async) 336.67 430.57 T
3135
3 F
3136
( switch.) 372.65 430.57 T
3137
3 12 Q
3138
(\245) 152.1 415.57 T
3139
3 10 Q
3140
(Commands can be sent to displays other than that of the root window) 162.9 415.57 T
3141
(, using the) 439.3 415.57 T
3142
5 F
3143
(-) 162.9 403.47 T
3144
(displayof) 168.9 403.47 T
3145
3 F
3146
( switch.) 222.87 403.47 T
3147
3 12 Q
3148
(\245) 152.1 388.47 T
3149
3 10 Q
3150
(W) 162.9 388.47 T
3151
(indow server security is now checked on each) 171.93 388.47 T
3152
5 F
3153
(send) 357.89 388.47 T
3154
3 F
3155
(, so Tk 4.0 deals better with) 381.88 388.47 T
3156
(changes in the security of the server) 162.9 376.38 T
3157
(.) 306.12 376.38 T
3158
3 12 Q
3159
(\245) 152.1 361.38 T
3160
3 10 Q
3161
(More complete error information \050including the) 162.9 361.38 T
3162
5 F
3163
(errorCode) 356.09 361.38 T
3164
3 F
3165
( and) 410.06 361.38 T
3166
5 F
3167
(errorInfo) 429.49 361.38 T
3168
3 F
3169
( vari-) 483.46 361.38 T
3170
(ables\051 is propagated back to the sender after errors.) 162.9 349.29 T
3171
3 12 Q
3172
(\245) 152.1 334.29 T
3173
3 10 Q
3174
(Y) 162.9 334.29 T
3175
(ou can query and change the name of an application with the) 169.12 334.29 T
3176
5 F
3177
(tk appname) 414.48 334.29 T
3178
3 F
3179
( com-) 474.45 334.29 T
3180
(mand.) 162.9 322.19 T
3181
(Unfortunately the improvements to the Tk 4.0) 152.1 307.19 T
3182
5 F
3183
(send) 338.65 307.19 T
3184
3 F
3185
( mechanism required substantial) 362.63 307.19 T
3186
(changes to the transport protocol for sends; this makes it impossible for Tk 4.0 applica-) 152.1 295.1 T
3187
(tions to communicate with Tk 3.6 applications via) 152.1 283.01 T
3188
5 F
3189
(send) 355.04 283.01 T
3190
3 F
3191
(. The new transport protocol is) 379.02 283.01 T
3192
(more \337exible than the old protocol, so it should be possible to make protocol improve-) 152.1 270.91 T
3193
(ments in an upward-compatible way) 152.1 258.82 T
3194
(.) 296.9 258.82 T
3195
98.1 215.47 512.1 218.49 C
3196
152.1 216.69 512.1 216.69 2 L
3197
0.5 H
3198
2 Z
3199
 
3200
 
3201
N
3202
98.1 216.98 143.1 216.98 2 L
3203
 
3204
N
3205
40.5 63 571.5 729 C
3206
 
3207
 
3208
 
3209
(1) 128.62 222.49 T
3210
(1) 134.63 222.49 T
3211
(The selection and clipboard) 152.1 222.49 T
3212
3 10 Q
3213
(In Tk 3.6 the selection mechanism can deal only with the display of the root window and) 152.1 198.8 T
3214
-0.13 (with the primary selection; there is no support for multiple displays, secondary selections,) 152.1 186.71 P
3215
(or the clipboard. Tk 4.0 eliminates all of these shortcomings. The) 152.1 174.61 T
3216
5 F
3217
(-displayof) 415.82 174.61 T
3218
3 F
3219
( option) 475.78 174.61 T
3220
-0.12 (can be used to specify a particular display in the selection command, and there is now full) 152.1 162.52 P
3221
(access to all of the X selection types. Tk 4.0 also includes a new) 152.1 150.43 T
3222
5 F
3223
(clipboard) 411.36 150.43 T
3224
3 F
3225
( command) 465.33 150.43 T
3226
(for manipulating the clipboard.) 152.1 138.33 T
3227
FMENDPAGE
3228
%%EndPage: "15" 16
3229
%%Page: "16" 16
3230
612 792 0 FMBEGINPAGE
3231
 
3232
 
3233
 
3234
(16) 98.1 668.33 T
3235
4 F
3236
(Tk4.0 Overview and Porting Guide) 359.34 668.33 T
3237
98.1 660.6 512.1 660.6 2 L
3238
0.25 H
3239
 
3240
N
3241
98.1 135 512.1 639 R
3242
7 X
3243
V
3244
98.1 623.98 512.1 627 C
3245
152.1 625.2 512.1 625.2 2 L
3246
0.5 H
3247
2 Z
3248
 
3249
 
3250
N
3251
98.1 625.49 143.1 625.49 2 L
3252
 
3253
N
3254
40.5 63 571.5 729 C
3255
 
3256
 
3257
 
3258
(12) 127.96 631 T
3259
(Miscellaneous changes) 152.1 631 T
3260
3 10 Q
3261
(Here is a quick summary of the remaining changes in Tk 4.0:) 152.1 607.31 T
3262
3 12 Q
3263
(\245) 152.1 592.31 T
3264
3 10 Q
3265
-0.17 (The) 162.9 592.31 P
3266
5 F
3267
-0.42 (wish) 180.76 592.31 P
3268
3 F
3269
-0.17 ( application has been modi\336ed so that the) 204.75 592.31 P
3270
5 F
3271
-0.42 (-f) 371.58 592.31 P
3272
-0.42 (ile) 383.57 592.31 P
3273
3 F
3274
-0.17 ( switch is no longer needed) 401.56 592.31 P
3275
(or recommended. This makes) 162.9 580.31 T
3276
5 F
3277
(wish) 283.64 580.31 T
3278
3 F
3279
( just like) 307.63 580.31 T
3280
5 F
3281
(tclsh) 344.56 580.31 T
3282
3 F
3283
(, where you specify the script \336le) 374.54 580.31 T
3284
(as the \336rst ar) 162.9 568.31 T
3285
(gument to the program, e.g.) 214.07 568.31 T
3286
5 F
3287
(wish foo.tcl) 327.33 568.31 T
3288
3 F
3289
(. The) 399.29 568.31 T
3290
5 F
3291
(-f) 422.33 568.31 T
3292
(ile) 434.32 568.31 T
3293
3 F
3294
( switch is still) 452.31 568.31 T
3295
(permitted for backward compatibility) 162.9 556.31 T
3296
(, but its use is deprecated.) 311.87 556.31 T
3297
3 12 Q
3298
(\245) 152.1 541.31 T
3299
5 10 Q
3300
(Wish) 162.9 541.31 T
3301
3 F
3302
( now sets the application\325) 186.89 541.31 T
3303
(s class from the application name \050what appears in the) 288.49 541.31 T
3304
-0.37 (title bar of the window by default\051, rather than always using) 162.9 529.31 P
3305
5 F
3306
-0.88 (Tk) 400.9 529.31 P
3307
3 F
3308
-0.37 ( as the class as in Tk 3.6.) 412.89 529.31 P
3309
(This makes application-speci\336c options easier to use.) 162.9 517.31 T
3310
3 12 Q
3311
(\245) 152.1 502.31 T
3312
3 10 Q
3313
(T) 162.9 502.31 T
3314
(oplevel windows are now resizable by default, whereas in Tk 3.6 they were not. Y) 168.31 502.31 T
3315
(ou) 496.22 502.31 T
3316
(can use the) 162.9 490.31 T
3317
5 F
3318
(wm resizable) 209.8 490.31 T
3319
3 F
3320
( command to make windows non-reiszable.) 281.77 490.31 T
3321
3 12 Q
3322
(\245) 152.1 475.31 T
3323
3 10 Q
3324
(Tk 4.0 patches around an Xlib bug whereby long-running applications tended to reach) 162.9 475.31 T
3325
(the end of the space of X resource ids, wrap around to 0 again, and then crash. Tk now) 162.9 463.31 T
3326
(reuses resource identi\336ers so that wrap-around should never occur) 162.9 451.31 T
3327
(.) 427.14 451.31 T
3328
3 12 Q
3329
(\245) 152.1 436.31 T
3330
3 10 Q
3331
-0.13 (There is a new) 162.9 436.31 P
3332
5 F
3333
-0.31 (winfo manager) 223.43 436.31 P
3334
3 F
3335
-0.13 ( command that tells which geometry manager is con-) 301.08 436.31 P
3336
(trolling a particular widget.) 162.9 424.31 T
3337
3 12 Q
3338
(\245) 152.1 409.31 T
3339
3 10 Q
3340
(There is a new) 162.9 409.31 T
3341
5 F
3342
(bell) 223.96 409.31 T
3343
3 F
3344
( command that does what its name suggests.) 247.94 409.31 T
3345
3 12 Q
3346
(\245) 152.1 394.31 T
3347
3 10 Q
3348
(There are new) 162.9 394.31 T
3349
5 F
3350
(winfo pointerx) 222.56 394.31 T
3351
3 F
3352
(,) 306.51 394.31 T
3353
5 F
3354
(winfo pointery) 311.51 394.31 T
3355
3 F
3356
(, and) 394.81 394.31 T
3357
5 F
3358
(winfo pointerxy) 416.74 394.31 T
3359
3 F
3360
(commands that can be used to query the position of the mouse pointer) 162.9 382.31 T
3361
(.) 442.17 382.31 T
3362
98.1 338.95 512.1 341.98 C
3363
152.1 340.18 512.1 340.18 2 L
3364
0.5 H
3365
2 Z
3366
 
3367
 
3368
N
3369
98.1 340.46 143.1 340.46 2 L
3370
 
3371
N
3372
40.5 63 571.5 729 C
3373
 
3374
 
3375
 
3376
(13) 127.96 345.98 T
3377
(Summary of Incompatibilites) 152.1 345.98 T
3378
3 10 Q
3379
-0.24 (This section lists all of the incompatible changes in Tk 4.0 that may require changes in T) 152.1 322.29 P
3380
-0.24 (cl) 502.62 322.29 P
3381
-0.22 (scripts written for T) 152.1 310.29 P
3382
-0.22 (cl 3.6. Each incompatibility is described in terms of the problem it pro-) 230.42 310.29 P
3383
(duces when you run your Tk 3.6 script under Tk 4.0 and a possible work-around. Only) 152.1 298.29 T
3384
(T) 152.1 286.29 T
3385
(cl-level incompatibilities are covered here. For incompatible changes at the C level, see) 157.51 286.29 T
3386
(the) 152.1 274.29 T
3387
5 F
3388
(README) 166.81 274.29 T
3389
3 F
3390
( and) 202.79 274.29 T
3391
5 F
3392
(changes) 222.22 274.29 T
3393
3 F
3394
( \336les in the distribution. The problems and solutions are) 264.2 274.29 T
3395
(roughly in order of importance, with the most important problems \336rst.) 152.1 262.29 T
3396
1 F
3397
(Pr) 152.1 247.29 T
3398
(oblem #1:) 162.46 247.29 T
3399
3 F
3400
(When you change the background color of a widget, a small ring in the) 206.88 247.29 T
3401
(default background color remains around the edge of the widget.) 152.1 235.29 T
3402
2 F
3403
(Solution:) 170.1 223.29 T
3404
3 F
3405
(This is the focus traversal highlight, whose color is speci\336ed separately) 209.25 223.29 T
3406
(from) 170.1 211.29 T
3407
5 F
3408
(-background) 192.03 211.29 T
3409
3 F
3410
(; use the) 257.99 211.29 T
3411
5 F
3412
(-highlightbackground) 293.8 211.29 T
3413
3 F
3414
( option to change the) 413.74 211.29 T
3415
(color of the highlight. Or) 170.1 199.29 T
3416
(, you can set) 269.92 199.29 T
3417
5 F
3418
(-highlightthickness) 322.38 199.29 T
3419
3 F
3420
( to 0 to eliminate) 436.31 199.29 T
3421
(the traversal highlight altogether) 170.1 187.29 T
3422
(.) 299.74 187.29 T
3423
1 F
3424
(Pr) 152.1 172.29 T
3425
(oblem #2:) 162.46 172.29 T
3426
3 F
3427
(Bindings de\336ned for a widget no longer replace the corresponding class) 206.88 172.29 T
3428
(bindings, so unwanted class bindings get invoked in addition to the widget bindings.) 152.1 160.29 T
3429
FMENDPAGE
3430
%%EndPage: "16" 17
3431
%%Page: "17" 17
3432
612 792 0 FMBEGINPAGE
3433
4 10 Q
3434
 
3435
 
3436
(13 Summary of Incompatibilites) 98.1 668.33 T
3437
 
3438
(17) 500.99 668.33 T
3439
98.1 660.6 512.1 660.6 2 L
3440
0.25 H
3441
 
3442
N
3443
98.1 135 512.1 639 R
3444
7 X
3445
V
3446
2 F
3447
 
3448
(Solution:) 170.1 632.33 T
3449
3 F
3450
(Add a) 209.25 632.33 T
3451
5 F
3452
(break) 235.89 632.33 T
3453
3 F
3454
( command at the end of the widget binding, or rework the) 265.88 632.33 T
3455
(widget binding so that it\325) 170.1 620.33 T
3456
(s OK for the class binding to execute.) 270.05 620.33 T
3457
1 F
3458
(Pr) 152.1 605.33 T
3459
(oblem #3:) 162.46 605.33 T
3460
3 F
3461
(Bindings on toplevel windows are invoked when events occur for internal) 206.88 605.33 T
3462
(windows inside the toplevels.) 152.1 593.33 T
3463
2 F
3464
(Solution:) 170.1 581.33 T
3465
3 F
3466
(Use the) 209.25 581.33 T
3467
5 F
3468
(%W) 242 581.33 T
3469
3 F
3470
( substitution to extract the name of the window where the event) 253.99 581.33 T
3471
(actually occurred, and only execute the rest of the binding script if this matches the) 170.1 569.33 T
3472
(name of the toplevel.) 170.1 557.33 T
3473
1 F
3474
-0.15 (Pr) 152.1 542.33 P
3475
-0.15 (oblem #4:) 162.46 542.33 P
3476
3 F
3477
-0.15 (The) 206.58 542.33 P
3478
5 F
3479
-0.37 (-command) 224.46 542.33 P
3480
3 F
3481
-0.15 ( option for a cascade menu entry is no longer invoked when) 272.44 542.33 P
3482
(the submenu is posted.) 152.1 530.33 T
3483
2 F
3484
(Solution:) 170.1 518.33 T
3485
3 F
3486
(Use the) 209.25 518.33 T
3487
5 F
3488
(-postcommand) 242 518.33 T
3489
3 F
3490
( option for the submenu instead.) 313.96 518.33 T
3491
1 F
3492
(Pr) 152.1 503.33 T
3493
(oblem #5:) 162.46 503.33 T
3494
3 F
3495
(The) 206.88 503.33 T
3496
5 F
3497
(-geometry) 224.92 503.33 T
3498
3 F
3499
( option is no longer supported by listboxes, frames, and) 278.89 503.33 T
3500
(toplevels.) 152.1 491.33 T
3501
2 F
3502
(Solution:) 170.1 479.33 T
3503
3 F
3504
(Use the) 209.25 479.33 T
3505
5 F
3506
(-width) 242 479.33 T
3507
3 F
3508
( and) 277.98 479.33 T
3509
5 F
3510
(-height) 297.41 479.33 T
3511
3 F
3512
( options instead.) 339.39 479.33 T
3513
1 F
3514
(Pr) 152.1 464.33 T
3515
(oblem #6:) 162.46 464.33 T
3516
3 F
3517
(The procedure) 206.88 464.33 T
3518
5 F
3519
(tk_listboxSingleSelect) 267.38 464.33 T
3520
3 F
3521
( no longer exists.) 399.3 464.33 T
3522
2 F
3523
(Solution:) 170.1 452.33 T
3524
3 F
3525
(Use the) 209.25 452.33 T
3526
5 F
3527
(-selectmode) 242 452.33 T
3528
3 F
3529
( option on the listbox instead.) 307.96 452.33 T
3530
1 F
3531
(Pr) 152.1 437.33 T
3532
(oblem #7:) 162.46 437.33 T
3533
3 F
3534
(Canvases no longer have a) 206.88 437.33 T
3535
5 F
3536
(-scrollincrement) 315.96 437.33 T
3537
3 F
3538
( option.) 411.91 437.33 T
3539
2 F
3540
(Solution:) 170.1 425.33 T
3541
3 F
3542
(Use the new) 209.25 425.33 T
3543
5 F
3544
(-xscrollincrement) 261.15 425.33 T
3545
3 F
3546
( and) 363.09 425.33 T
3547
5 F
3548
(-yscrollincrement) 382.52 425.33 T
3549
3 F
3550
(options instead.) 170.1 413.33 T
3551
1 F
3552
(Pr) 152.1 398.33 T
3553
(oblem #8:) 162.46 398.33 T
3554
3 F
3555
(The) 206.88 398.33 T
3556
5 F
3557
(tk colormodel) 224.92 398.33 T
3558
3 F
3559
( command no longer exists.) 302.88 398.33 T
3560
2 F
3561
-0.28 (Solution:) 170.1 386.33 P
3562
3 F
3563
-0.28 (T) 208.97 386.33 P
3564
-0.28 (o \336nd out whether a window is monochrome or color) 214.37 386.33 P
3565
-0.28 (, use) 424.34 386.33 P
3566
5 F
3567
-0.68 (winfo depth) 444.6 386.33 P
3568
3 F
3569
(to extract the window\325) 170.1 374.33 T
3570
(s depth; a depth of 1 means monochrome.) 259.76 374.33 T
3571
1 F
3572
-0.08 (Pr) 152.1 359.33 P
3573
-0.08 (oblem #9:) 162.46 359.33 P
3574
3 F
3575
-0.08 (The class of Tk applications is no longer) 206.72 359.33 P
3576
5 F
3577
-0.19 (Tk) 370.97 359.33 P
3578
3 F
3579
-0.08 (, so options speci\336ed for the) 382.96 359.33 P
3580
5 F
3581
-0.19 (Tk) 497.69 359.33 P
3582
3 F
3583
(class in your) 152.1 347.33 T
3584
5 F
3585
(.Xdefaults) 205.12 347.33 T
3586
3 F
3587
( \336le are no longer used.) 265.09 347.33 T
3588
2 F
3589
(Solution:) 170.1 335.33 T
3590
3 F
3591
(Modify your) 209.25 335.33 T
3592
5 F
3593
(.Xdefaults) 262.55 335.33 T
3594
3 F
3595
( \336le \050and any T) 322.52 335.33 T
3596
(cl code that sets options\051 to) 382.88 335.33 T
3597
(specify the name of the application \050with the \336rst letter capitalized\051 as the class) 170.1 323.33 T
3598
(instead of) 170.1 311.33 T
3599
5 F
3600
(Tk) 211.74 311.33 T
3601
3 F
3602
(.) 223.73 311.33 T
3603
1 F
3604
-0.15 (Pr) 152.1 296.33 P
3605
-0.15 (oblem #10:) 162.46 296.33 P
3606
3 F
3607
-0.15 (When text is added to a text widget just after a tagged area, the new text no) 211.57 296.33 P
3608
(longer receives the tag.) 152.1 284.33 T
3609
2 F
3610
-0.1 (Solution:) 170.1 272.33 P
3611
3 F
3612
-0.1 (Explicitly tag the new text with the desired tags. If you want the tags on the) 209.15 272.33 P
3613
-0.08 (new text to be the same as those at some other point in the text, you can use the) 170.1 260.33 P
3614
5 F
3615
-0.2 (tag) 488.31 260.33 P
3616
(names) 170.1 248.33 T
3617
3 F
3618
( widget command to query existing tags.) 200.08 248.33 T
3619
1 F
3620
(Pr) 152.1 233.33 T
3621
(oblem #1) 162.46 233.33 T
3622
(1:) 200.5 233.33 T
3623
3 F
3624
(W) 211.33 233.33 T
3625
(idgets appear lar) 220.36 233.33 T
3626
(ger than they did in Tk 3.6.) 286.24 233.33 T
3627
2 F
3628
(Solution:) 170.1 221.33 T
3629
3 F
3630
(There are two issues here. The \336rst is that all widgets now have a focus tra-) 209.25 221.33 T
3631
-0.24 (versal highlight ring that turns dark when the widget has the focus; this is required for) 170.1 209.33 P
3632
(Motif compliance but you can eliminate it by specifying a 0 value for the) 170.1 197.33 T
3633
5 F
3634
( -high-) 462.4 197.33 T
3635
(lightthickness) 170.1 185.33 T
3636
3 F
3637
( option. The second issue is that the default padding for buttons) 254.05 185.33 T
3638
-0.17 (and menubuttons has been increased to match the sizes of Motif widgets. If you don\325) 170.1 173.33 P
3639
-0.17 (t) 506.99 173.33 P
3640
(mind being dif) 170.1 161.33 T
3641
(ferent from Motif, you can set the) 228.78 161.33 T
3642
5 F
3643
(-padx) 366.45 161.33 T
3644
3 F
3645
( and) 396.44 161.33 T
3646
5 F
3647
(-) 415.86 161.33 T
3648
(pady) 421.86 161.33 T
3649
3 F
3650
( options back to) 445.85 161.33 T
3651
FMENDPAGE
3652
%%EndPage: "17" 18
3653
%%Page: "18" 18
3654
612 792 0 FMBEGINPAGE
3655
 
3656
 
3657
 
3658
(18) 98.1 668.33 T
3659
4 F
3660
(Tk4.0 Overview and Porting Guide) 359.34 668.33 T
3661
98.1 660.6 512.1 660.6 2 L
3662
0.25 H
3663
 
3664
N
3665
98.1 135 512.1 639 R
3666
7 X
3667
V
3668
3 F
3669
 
3670
(their Tk 3.6 values \050use the) 170.1 632.33 T
3671
5 F
3672
(conf) 281.41 632.33 T
3673
(igure) 305.4 632.33 T
3674
3 F
3675
( widget command in Tk 3.6 to see what the) 335.38 632.33 T
3676
(old values were\051.) 170.1 620.33 T
3677
1 F
3678
(Pr) 152.1 605.33 T
3679
(oblem #12:) 162.46 605.33 T
3680
3 F
3681
(Listboxes now return the selection as a string with newlines separating the) 211.88 605.33 T
3682
(values, rather than a T) 152.1 593.33 T
3683
(cl, list.) 240.49 593.33 T
3684
2 F
3685
(Solution:) 170.1 581.33 T
3686
3 F
3687
(Modify your code to handle the new format. Y) 209.25 581.33 T
3688
(ou can convert the selection) 395.06 581.33 T
3689
(back into the old list format with a script like the following:) 170.1 569.33 T
3690
5 9 Q
3691
(split [selection get] \134n) 179.1 555 T
3692
1 10 Q
3693
(Pr) 152.1 541.33 T
3694
(oblem #13:) 162.46 541.33 T
3695
3 F
3696
(Tk 4.0 applications cannot) 211.88 541.33 T
3697
5 F
3698
(send) 320.42 541.33 T
3699
3 F
3700
( to or be sent from Tk 3.6 applications.) 344.4 541.33 T
3701
2 F
3702
(Solution:) 170.1 529.33 T
3703
3 F
3704
(The only solution is to upgrade all your applications to Tk 4.0.) 209.25 529.33 T
3705
1 F
3706
-0.17 (Pr) 152.1 514.33 P
3707
-0.17 (oblem #14:) 162.46 514.33 P
3708
3 F
3709
-0.17 (In texts,) 211.54 514.33 P
3710
5 F
3711
-0.4 (end) 245.91 514.33 P
3712
3 F
3713
-0.17 ( now refers to a position just after the \336nal newline, instead of) 263.9 514.33 P
3714
(the \336nal newline.) 152.1 502.33 T
3715
2 F
3716
-0.08 (Solution:) 170.1 490.33 P
3717
3 F
3718
-0.08 (If you wish to refer to the \336nal newline, use the index) 209.17 490.33 P
3719
5 F
3720
-0.19 (end-1char) 424.98 490.33 P
3721
3 F
3722
-0.08 ( instead) 478.95 490.33 P
3723
(of) 170.1 478.33 T
3724
5 F
3725
(end) 180.92 478.33 T
3726
3 F
3727
(.) 198.91 478.33 T
3728
1 F
3729
(Pr) 152.1 463.33 T
3730
(oblem #15:) 162.46 463.33 T
3731
3 F
3732
(In entry widgets,) 211.88 463.33 T
3733
5 F
3734
(sel.last) 281.83 463.33 T
3735
3 F
3736
( now refers to the character just after the last) 329.8 463.33 T
3737
(selected one, rather than the last selected one. The second index for the) 152.1 451.33 T
3738
5 F
3739
(delete) 438.81 451.33 T
3740
3 F
3741
( widget) 474.79 451.33 T
3742
(command has changed in the same way) 152.1 439.33 T
3743
(.) 309.66 439.33 T
3744
2 F
3745
(Solution:) 170.1 427.33 T
3746
3 F
3747
(Add one to the values used in your scripts.) 209.25 427.33 T
3748
1 F
3749
(Pr) 152.1 412.33 T
3750
(oblem #16:) 162.46 412.33 T
3751
3 F
3752
(Because) 211.88 412.33 T
3753
5 F
3754
(Any) 247.68 412.33 T
3755
3 F
3756
( is implicit in all bindings, bindings trigger when extra modi-) 265.67 412.33 T
3757
(\336ers are present, whereas they didn\325) 152.1 400.33 T
3758
(t trigger in Tk 3.6.) 296.24 400.33 T
3759
2 F
3760
(Solution:) 170.1 388.33 T
3761
3 F
3762
(In most cases it\325) 209.25 388.33 T
3763
(s probably \336ne to ignore the extra modi\336ers. If you really) 273.93 388.33 T
3764
-0.12 (don\325) 170.1 376.33 P
3765
-0.12 (t want any actions to be taken when extra modi\336ers are present, create additional) 188.24 376.33 P
3766
(bindings for the cases with extra modi\336ers, and specify a single blank character \050or) 170.1 364.33 T
3767
(any script that does nothing\051 as the script for those bindings. Alternatively) 170.1 352.33 T
3768
(, you can) 465.93 352.33 T
3769
(use the) 170.1 340.33 T
3770
5 F
3771
(%s) 200.63 340.33 T
3772
3 F
3773
( substitution to extract the mouse and modi\336er state in the event binding,) 212.63 340.33 T
3774
(then you can test this value for modi\336ers you do or don\325) 170.1 328.33 T
3775
(t want.) 394.5 328.33 T
3776
1 F
3777
(Pr) 152.1 313.33 T
3778
(oblem #17:) 162.46 313.33 T
3779
3 F
3780
(In scrollbars there is no longer a) 211.88 313.33 T
3781
5 F
3782
(-foreground) 343.17 313.33 T
3783
3 F
3784
( or) 409.13 313.33 T
3785
5 F
3786
(-activefore-) 422.45 313.33 T
3787
(ground) 152.1 301.33 T
3788
3 F
3789
( option, and) 188.08 301.33 T
3790
5 F
3791
(-background) 238.05 301.33 T
3792
3 F
3793
( has a dif) 304.02 301.33 T
3794
(ferent meaning.) 340.2 301.33 T
3795
2 F
3796
-0.4 (Solution:) 170.1 289.33 P
3797
3 F
3798
-0.4 (Use) 208.85 289.33 P
3799
5 F
3800
-0.96 (-troughcolor) 226.49 289.33 P
3801
3 F
3802
-0.4 ( everywhere that you used) 298.45 289.33 P
3803
5 F
3804
-0.96 (-background) 403.87 289.33 P
3805
3 F
3806
-0.4 ( in Tk 3.6,) 469.83 289.33 P
3807
5 F
3808
(-background) 170.1 277.33 T
3809
3 F
3810
( everywhere you used to use) 236.06 277.33 T
3811
5 F
3812
(-foreground) 352.08 277.33 T
3813
3 F
3814
(, and) 418.04 277.33 T
3815
5 F
3816
(-activeback-) 439.97 277.33 T
3817
(ground) 170.1 265.33 T
3818
3 F
3819
( everywhere you used to use) 206.08 265.33 T
3820
5 F
3821
(-activeforeground) 322.1 265.33 T
3822
3 F
3823
(.) 424.04 265.33 T
3824
1 F
3825
(Pr) 152.1 250.33 T
3826
(oblem #18:) 162.46 250.33 T
3827
3 F
3828
(Options for colors seem to have changed in scale widgets.) 211.88 250.33 T
3829
2 F
3830
(Solution:) 170.1 238.33 T
3831
3 F
3832
(Use) 209.25 238.33 T
3833
5 F
3834
(-background) 227.29 238.33 T
3835
3 F
3836
( where you used to use) 293.25 238.33 T
3837
5 F
3838
(-sliderforeground) 387.07 238.33 T
3839
3 F
3840
(,) 489.02 238.33 T
3841
5 F
3842
(-) 170.1 226.33 T
3843
(troughcolor) 176.1 226.33 T
3844
3 F
3845
( where you used to use) 242.06 226.33 T
3846
5 F
3847
(-background) 335.88 226.33 T
3848
3 F
3849
(, and) 401.84 226.33 T
3850
5 F
3851
( -activeback-) 421.27 226.33 T
3852
(ground) 170.1 214.33 T
3853
3 F
3854
( everywhere you used to use) 206.08 214.33 T
3855
5 F
3856
(-activeforeground) 322.1 214.33 T
3857
3 F
3858
(.) 424.04 214.33 T
3859
1 F
3860
(Pr) 152.1 199.33 T
3861
(oblem #19:) 162.46 199.33 T
3862
3 F
3863
(Scale widgets no longer accept hexadecimal or octal numbers in the) 211.88 199.33 T
3864
5 F
3865
(set) 485.84 199.33 T
3866
3 F
3867
(command or the) 152.1 187.33 T
3868
5 F
3869
(-from) 219.55 187.33 T
3870
3 F
3871
( and) 249.54 187.33 T
3872
5 F
3873
(-to) 268.97 187.33 T
3874
3 F
3875
( options.) 286.96 187.33 T
3876
2 F
3877
(Solution:) 170.1 175.33 T
3878
3 F
3879
(Use) 209.25 175.33 T
3880
5 F
3881
(format) 227.29 175.33 T
3882
3 F
3883
( or) 263.27 175.33 T
3884
5 F
3885
(expr) 276.59 175.33 T
3886
3 F
3887
( to convert the values to decimal.) 300.58 175.33 T
3888
1 F
3889
(Pr) 152.1 160.33 T
3890
(oblem #20:) 162.46 160.33 T
3891
3 F
3892
(In checkbuttons, radiobuttons, and menu entries, the) 211.88 160.33 T
3893
5 F
3894
(-selector) 423.4 160.33 T
3895
3 F
3896
( option) 477.37 160.33 T
3897
(no longer exists.) 152.1 148.33 T
3898
FMENDPAGE
3899
%%EndPage: "18" 19
3900
%%Page: "19" 19
3901
612 792 0 FMBEGINPAGE
3902
4 10 Q
3903
 
3904
 
3905
(13 Summary of Incompatibilites) 98.1 668.33 T
3906
 
3907
(19) 500.99 668.33 T
3908
98.1 660.6 512.1 660.6 2 L
3909
0.25 H
3910
 
3911
N
3912
98.1 135 512.1 639 R
3913
7 X
3914
V
3915
2 F
3916
 
3917
(Solution:) 170.1 632.33 T
3918
3 F
3919
(Use) 209.25 632.33 T
3920
5 F
3921
(-selectcolor) 227.29 632.33 T
3922
3 F
3923
( instead of) 299.25 632.33 T
3924
5 F
3925
(-select) 343.39 632.33 T
3926
3 F
3927
(. T) 385.36 632.33 T
3928
(o specify that no indicator) 395.77 632.33 T
3929
(should be drawn at all, use the) 170.1 620.33 T
3930
5 F
3931
(-indicatoron) 293.9 620.33 T
3932
3 F
3933
( option instead of setting) 365.86 620.33 T
3934
5 F
3935
(-select) 467.2 620.33 T
3936
3 F
3937
(to an empty string.) 170.1 608.33 T
3938
1 F
3939
-0.12 (Pr) 152.1 593.33 P
3940
-0.12 (oblem #21:) 162.46 593.33 P
3941
3 F
3942
-0.12 (The indices of menu entries have changed, and operations on menu entry 0) 211.64 593.33 P
3943
(no longer work.) 152.1 581.33 T
3944
2 F
3945
(Solution:) 170.1 569.33 T
3946
3 F
3947
(This is because menus now have a tearof) 209.25 569.33 T
3948
(f entry at the top by default, and) 372.55 569.33 T
3949
(this occupies entry 0, so your \336rst entry is now entry 1. Y) 170.1 557.33 T
3950
(ou can either set the) 398.95 557.33 T
3951
5 F
3952
(-) 170.1 545.33 T
3953
(tearoff) 176.1 545.33 T
3954
3 F
3955
( option to 0 to eliminate the tearof) 218.07 545.33 T
3956
(f entry or add 1 to all the indices you) 354.2 545.33 T
3957
(use in your scripts.) 170.1 533.33 T
3958
1 F
3959
-0.22 (Pr) 152.1 518.33 P
3960
-0.22 (oblem #22:) 162.46 518.33 P
3961
3 F
3962
-0.22 (The) 211.44 518.33 P
3963
5 F
3964
-0.53 (enable) 229.26 518.33 P
3965
3 F
3966
-0.22 ( and) 265.24 518.33 P
3967
5 F
3968
-0.53 (disable) 284.23 518.33 P
3969
3 F
3970
-0.22 ( widget commands are no longer supported by) 326.21 518.33 P
3971
(menus.) 152.1 506.33 T
3972
2 F
3973
(Solution:) 170.1 494.33 T
3974
3 F
3975
(Use the) 209.25 494.33 T
3976
5 F
3977
(-state) 242 494.33 T
3978
3 F
3979
( con\336guration option instead.) 277.98 494.33 T
3980
1 F
3981
(Pr) 152.1 479.33 T
3982
(oblem #23:) 162.46 479.33 T
3983
3 F
3984
(The) 211.88 479.33 T
3985
5 F
3986
(activate) 229.92 479.33 T
3987
3 F
3988
( and) 277.89 479.33 T
3989
5 F
3990
(deactivate) 297.32 479.33 T
3991
3 F
3992
( widget commands are no longer sup-) 357.29 479.33 T
3993
(ported by buttons, checkbuttons, radiobuttons, and menus.) 152.1 467.33 T
3994
2 F
3995
(Solution:) 170.1 455.33 T
3996
3 F
3997
(Use the) 209.25 455.33 T
3998
5 F
3999
(-state) 242 455.33 T
4000
3 F
4001
( con\336guration option instead.) 277.98 455.33 T
4002
1 F
4003
(Pr) 152.1 440.33 T
4004
(oblem #24:) 162.46 440.33 T
4005
3 F
4006
(Canvas arc items no longer use the) 211.88 440.33 T
4007
5 F
4008
(-f) 353.72 440.33 T
4009
(ill) 365.71 440.33 T
4010
3 F
4011
( and) 383.7 440.33 T
4012
5 F
4013
(-stipple) 403.13 440.33 T
4014
3 F
4015
( options for) 451.11 440.33 T
4016
(drawing when the) 152.1 428.33 T
4017
5 F
4018
(-style) 226.21 428.33 T
4019
3 F
4020
( option is) 262.19 428.33 T
4021
5 F
4022
(arc) 301.9 428.33 T
4023
3 F
4024
(.) 319.89 428.33 T
4025
2 F
4026
(Solution:) 170.1 416.33 T
4027
3 F
4028
(Use the) 209.25 416.33 T
4029
5 F
4030
(-outline) 242 416.33 T
4031
3 F
4032
( and) 289.97 416.33 T
4033
5 F
4034
(-outlinestipple) 309.4 416.33 T
4035
3 F
4036
( options instead.) 399.35 416.33 T
4037
1 F
4038
-0.29 (Pr) 152.1 401.33 P
4039
-0.29 (oblem #25:) 162.46 401.33 P
4040
3 F
4041
-0.29 (The variable) 211.29 401.33 P
4042
5 F
4043
-0.7 (tkVersion) 263.43 401.33 P
4044
3 F
4045
-0.29 ( no longer exists \050it has been obsolete for several) 317.4 401.33 P
4046
(releases\051.) 152.1 389.33 T
4047
2 F
4048
(Solution:) 170.1 377.33 T
4049
3 F
4050
(Use) 209.25 377.33 T
4051
5 F
4052
(tk_version) 227.29 377.33 T
4053
3 F
4054
( instead.) 287.26 377.33 T
4055
1 F
4056
(Pr) 152.1 362.33 T
4057
(oblem #26:) 162.46 362.33 T
4058
3 F
4059
(The syntax of the) 211.88 362.33 T
4060
5 F
4061
(scan) 284.05 362.33 T
4062
3 F
4063
( widget commands for texts has changed.) 308.03 362.33 T
4064
2 F
4065
(Solution:) 170.1 350.33 T
4066
3 F
4067
(Modify your code to use the new syntax.) 209.25 350.33 T
4068
1 F
4069
(Pr) 152.1 335.33 T
4070
(oblem #27:) 162.46 335.33 T
4071
5 F
4072
(wish) 211.88 335.33 T
4073
3 F
4074
( no longer recognizes the) 235.86 335.33 T
4075
5 F
4076
(-help) 338.84 335.33 T
4077
3 F
4078
( option.) 368.82 335.33 T
4079
2 F
4080
(Solution:) 170.1 323.33 T
4081
3 F
4082
(Implement this option yourself in your) 209.25 323.33 T
4083
5 F
4084
(wish) 366.38 323.33 T
4085
3 F
4086
( scripts.) 390.37 323.33 T
4087
1 F
4088
(Pr) 152.1 308.33 T
4089
(oblem #28:) 162.46 308.33 T
4090
3 F
4091
(Tk 4.0 always prints real numbers such as canvas coordinates with a deci-) 211.88 308.33 T
4092
(mal point. This can cause syntax errors if you later use them in situations where integers) 152.1 296.33 T
4093
(are expected.) 152.1 284.33 T
4094
2 F
4095
(Solution:) 170.1 272.33 T
4096
3 F
4097
(Change your code so that real numbers work OK, or use the) 209.25 272.33 T
4098
5 F
4099
(expr) 451.57 272.33 T
4100
3 F
4101
( com-) 475.55 272.33 T
4102
(mand \050with the) 170.1 260.33 T
4103
5 F
4104
(round) 233.12 260.33 T
4105
3 F
4106
( function\051 to convert the numbers to integers.) 263.1 260.33 T
4107
1 F
4108
(Pr) 152.1 245.33 T
4109
(oblem #29:) 162.46 245.33 T
4110
3 F
4111
(The) 211.88 245.33 T
4112
5 F
4113
(pack info) 229.92 245.33 T
4114
3 F
4115
( command returns dif) 283.89 245.33 T
4116
(ferent information, and) 369.48 245.33 T
4117
5 F
4118
(pack) 464.41 245.33 T
4119
(newinfo) 152.1 233.33 T
4120
3 F
4121
( no longer exists.) 194.08 233.33 T
4122
2 F
4123
(Solution:) 170.1 221.33 T
4124
3 F
4125
(Use) 209.25 221.33 T
4126
5 F
4127
(pack info) 227.29 221.33 T
4128
3 F
4129
( where you used to use) 281.26 221.33 T
4130
5 F
4131
(pack newinfo) 375.08 221.33 T
4132
3 F
4133
(.) 447.04 221.33 T
4134
5 F
4135
(Pack info) 452.04 221.33 T
4136
3 F
4137
(was obsolete, so it has been eliminated.) 170.1 209.33 T
4138
1 F
4139
(Pr) 152.1 194.33 T
4140
(oblem #30:) 162.46 194.33 T
4141
3 F
4142
(The) 211.88 194.33 T
4143
5 F
4144
(view) 229.92 194.33 T
4145
3 F
4146
( widget command for entries no longer exists, nor does the) 253.9 194.33 T
4147
5 F
4148
(-) 152.1 182.33 T
4149
(scrollcommand) 158.1 182.33 T
4150
3 F
4151
( option.) 236.05 182.33 T
4152
2 F
4153
-0.29 (Solution:) 170.1 170.33 P
4154
3 F
4155
-0.29 (Use) 208.96 170.33 P
4156
5 F
4157
-0.69 (xview) 226.71 170.33 P
4158
3 F
4159
-0.29 ( where you used to use) 256.7 170.33 P
4160
5 F
4161
-0.69 (view) 348.8 170.33 P
4162
3 F
4163
-0.29 (; use) 372.78 170.33 P
4164
5 F
4165
-0.69 (-xscrollcommand) 393.31 170.33 P
4166
3 F
4167
-0.29 ( where) 483.26 170.33 P
4168
(you used to use) 170.1 158.33 T
4169
5 F
4170
(-scrollcommand) 234.51 158.33 T
4171
3 F
4172
(.) 318.46 158.33 T
4173
FMENDPAGE
4174
%%EndPage: "19" 20
4175
%%Page: "20" 20
4176
612 792 0 FMBEGINPAGE
4177
 
4178
 
4179
 
4180
(20) 98.1 668.33 T
4181
4 F
4182
(Tk4.0 Overview and Porting Guide) 359.34 668.33 T
4183
98.1 660.6 512.1 660.6 2 L
4184
0.25 H
4185
 
4186
N
4187
98.1 135 512.1 639 R
4188
7 X
4189
V
4190
1 F
4191
 
4192
(Pr) 152.1 632.33 T
4193
(oblem #31:) 162.46 632.33 T
4194
3 F
4195
(The) 211.88 632.33 T
4196
5 F
4197
(-padx) 229.92 632.33 T
4198
3 F
4199
( and) 259.9 632.33 T
4200
5 F
4201
(-pady) 279.33 632.33 T
4202
3 F
4203
( options are ignored for the button family of wid-) 309.31 632.33 T
4204
(gets if a bitmap or image is being displayed: the padding is always 0.) 152.1 620.02 T
4205
2 F
4206
-0.27 (Solution:) 170.1 608.02 P
4207
3 F
4208
-0.27 (Pack the button inside a frame, with extra padding in the frame. Or) 208.98 608.02 P
4209
-0.27 (, redo the) 472.94 608.02 P
4210
(image or bitmap to incorporate padding into it.) 170.1 595.71 T
4211
1 F
4212
(Pr) 152.1 580.71 T
4213
(oblem #32:) 162.46 580.71 T
4214
3 F
4215
(In radiobuttons, the) 211.88 580.71 T
4216
5 F
4217
(-value) 292.38 580.71 T
4218
3 F
4219
( option no longer defaults to the name of the) 328.36 580.71 T
4220
(widget; it defaults to an empty string.) 152.1 568.4 T
4221
2 F
4222
(Solution:) 170.1 556.4 T
4223
3 F
4224
(Specify the widget\325) 209.25 556.4 T
4225
(s name explicitly as the value of the option.) 286.98 556.4 T
4226
1 F
4227
(Pr) 152.1 541.4 T
4228
(oblem #33:) 162.46 541.4 T
4229
3 F
4230
(The) 211.88 541.4 T
4231
5 F
4232
(-menu) 229.92 541.4 T
4233
3 F
4234
( option for menubuttons and cascade menu entries may refer) 259.9 541.4 T
4235
(only to a child of the menubutton or menu.) 152.1 529.08 T
4236
2 F
4237
(Solution:) 170.1 517.08 T
4238
3 F
4239
(Rename menus to meet this requirement.) 209.25 517.08 T
4240
1 F
4241
(Pr) 152.1 502.08 T
4242
(oblem #34:) 162.46 502.08 T
4243
3 F
4244
(The interpretation of) 211.88 502.08 T
4245
5 F
4246
(@y) 297.09 502.08 T
4247
3 F
4248
( in menus has changed: it never returns) 309.08 502.08 T
4249
5 F
4250
(none) 467.86 502.08 T
4251
3 F
4252
(,) 491.84 502.08 T
4253
(even if the y-coordinate is outside the menu \050it returns the index of the closest entry\051.) 152.1 489.77 T
4254
2 F
4255
(Solution:) 170.1 477.77 T
4256
3 F
4257
(If you care about this distinction, check the y-coordinate explicitly to see if) 209.25 477.77 T
4258
-0.17 (it is less than 0 or greater than or equal to the window\325) 170.1 465.46 P
4259
-0.17 (s height \050use) 385.7 465.46 P
4260
5 F
4261
-0.41 (winfo height) 438.21 465.46 P
4262
3 F
4263
(to get the height\051.) 170.1 453.15 T
4264
1 F
4265
-0.13 (Pr) 152.1 438.15 P
4266
-0.13 (oblem #35:) 162.46 438.15 P
4267
3 F
4268
-0.13 (The) 211.62 438.15 P
4269
5 F
4270
-0.3 (invoke) 229.54 438.15 P
4271
3 F
4272
-0.13 ( and) 265.52 438.15 P
4273
5 F
4274
-0.3 (activate) 284.7 438.15 P
4275
3 F
4276
-0.13 ( widget commands for menus no longer post) 332.67 438.15 P
4277
(cascaded submenus.) 152.1 425.83 T
4278
2 F
4279
(Solution:) 170.1 413.83 T
4280
3 F
4281
(Use the) 209.25 413.83 T
4282
5 F
4283
(postcascade) 242 413.83 T
4284
3 F
4285
( widget command to post submenus.) 307.96 413.83 T
4286
1 F
4287
(Pr) 152.1 398.83 T
4288
(oblem #36:) 162.46 398.83 T
4289
3 F
4290
(The selection tar) 211.88 398.83 T
4291
(gets) 278.31 398.83 T
4292
5 F
4293
(APPLICATION) 296.91 398.83 T
4294
3 F
4295
( and) 362.87 398.83 T
4296
5 F
4297
(WINDOW_NAME) 382.3 398.83 T
4298
3 F
4299
( are no longer) 448.27 398.83 T
4300
(supported.) 152.1 386.52 T
4301
2 F
4302
(Solution:) 170.1 374.52 T
4303
3 F
4304
(Use tar) 209.25 374.52 T
4305
(gets) 237.65 374.52 T
4306
5 F
4307
(TK_APPLICATION) 256.25 374.52 T
4308
3 F
4309
( and) 340.21 374.52 T
4310
5 F
4311
(TK_WINDOW) 359.64 374.52 T
4312
3 F
4313
( instead.) 413.61 374.52 T
4314
1 F
4315
(Pr) 152.1 359.52 T
4316
(oblem #37:) 162.46 359.52 T
4317
3 F
4318
(There is no longer a default focus.) 211.88 359.52 T
4319
2 F
4320
(Solution:) 170.1 347.52 T
4321
3 F
4322
(None: modify your code not to depend on this feature.) 209.25 347.52 T
4323
1 F
4324
(Pr) 152.1 332.52 T
4325
(oblem #38:) 162.46 332.52 T
4326
3 F
4327
(The) 211.88 332.52 T
4328
5 F
4329
(focus) 229.92 332.52 T
4330
3 F
4331
( command now returns an empty string to indicate that the) 259.9 332.52 T
4332
(application doesn\325) 152.1 320.21 T
4333
(t have the input focus, instead of) 225.48 320.21 T
4334
5 F
4335
(none) 358.17 320.21 T
4336
3 F
4337
(.) 382.15 320.21 T
4338
2 F
4339
(Solution:) 170.1 308.21 T
4340
3 F
4341
(Modify your code to check for an empty string instead of) 209.25 308.21 T
4342
5 F
4343
(none) 440.47 308.21 T
4344
3 F
4345
(.) 464.46 308.21 T
4346
1 F
4347
(Pr) 152.1 293.21 T
4348
(oblem #39:) 162.46 293.21 T
4349
5 F
4350
(FocusIn) 211.88 293.21 T
4351
3 F
4352
( and) 253.85 293.21 T
4353
5 F
4354
(FocusOut) 273.28 293.21 T
4355
3 F
4356
( events are delivered to more windows than) 321.26 293.21 T
4357
(they used to be.) 152.1 280.9 T
4358
2 F
4359
-0.02 (Solution:) 170.1 268.9 P
4360
3 F
4361
-0.02 (Modify your code to use the new set of events. The old event set was some-) 209.23 268.9 P
4362
(what bizarre, and the new set matches more closely what happens elsewhere, such as) 170.1 256.58 T
4363
(with) 170.1 244.27 T
4364
5 F
4365
(Enter) 190.37 244.27 T
4366
3 F
4367
( and) 220.35 244.27 T
4368
5 F
4369
(Leave) 239.78 244.27 T
4370
3 F
4371
( events.) 269.77 244.27 T
4372
1 F
4373
-0.28 (Pr) 152.1 229.27 P
4374
-0.28 (oblem #40:) 162.46 229.27 P
4375
5 F
4376
-0.67 (wm maxsize) 211.32 229.27 P
4377
3 F
4378
-0.28 ( and) 270.62 229.27 P
4379
5 F
4380
-0.67 (wm minsize) 289.49 229.27 P
4381
3 F
4382
-0.28 ( no longer accept empty ar) 348.79 229.27 P
4383
-0.28 (guments. This) 453.52 229.27 P
4384
(means that you cannot use these commands to make windows non-resizable.) 152.1 216.96 T
4385
2 F
4386
(Solution:) 170.1 204.96 T
4387
3 F
4388
(Use the) 209.25 204.96 T
4389
5 F
4390
(wm resizable) 242 204.96 T
4391
3 F
4392
( command to make windows resizable.) 313.96 204.96 T
4393
1 F
4394
(Pr) 152.1 189.96 T
4395
(oblem #41:) 162.46 189.96 T
4396
3 F
4397
(In the placer) 211.88 189.96 T
4398
(, if you specify both) 261.43 189.96 T
4399
5 F
4400
(-x) 344.15 189.96 T
4401
3 F
4402
( and) 356.15 189.96 T
4403
5 F
4404
(-relx) 375.58 189.96 T
4405
3 F
4406
( then they add, instead of) 405.56 189.96 T
4407
(the most recent speci\336cation replacing the earlier one. Ditto for) 152.1 177.65 T
4408
5 F
4409
(-y) 407.74 177.65 T
4410
3 F
4411
( and) 419.73 177.65 T
4412
5 F
4413
(-rely) 439.16 177.65 T
4414
3 F
4415
(,) 468.5 177.65 T
4416
5 F
4417
(-width) 473.49 177.65 T
4418
3 F
4419
(and) 152.1 165.33 T
4420
5 F
4421
(-relwidth) 169.03 165.33 T
4422
3 F
4423
(, and) 223 165.33 T
4424
5 F
4425
(-height) 244.93 165.33 T
4426
3 F
4427
( and) 286.91 165.33 T
4428
5 F
4429
(-relheight) 306.33 165.33 T
4430
3 F
4431
(.) 366.3 165.33 T
4432
2 F
4433
(Solution:) 170.1 153.33 T
4434
3 F
4435
(If you no longer want one of these options to be used, set it to 0 explicitly) 209.25 153.33 T
4436
(.) 503.14 153.33 T
4437
1 F
4438
(Pr) 152.1 138.33 T
4439
(oblem #42:) 162.46 138.33 T
4440
3 F
4441
(The command \322) 211.88 138.33 T
4442
5 F
4443
(focus none) 276.27 138.33 T
4444
3 F
4445
(\323 doesn\325) 336.24 138.33 T
4446
(t work in Tk 4.0.) 369.64 138.33 T
4447
FMENDPAGE
4448
%%EndPage: "20" 21
4449
%%Page: "21" 21
4450
612 792 0 FMBEGINPAGE
4451
4 10 Q
4452
 
4453
 
4454
(13 Summary of Incompatibilites) 98.1 668.33 T
4455
 
4456
(21) 500.99 668.33 T
4457
98.1 660.6 512.1 660.6 2 L
4458
0.25 H
4459
 
4460
N
4461
98.1 135 512.1 639 R
4462
7 X
4463
V
4464
2 F
4465
 
4466
(Solution:) 170.1 632.33 T
4467
3 F
4468
(Create a dummy widget that is never mapped and set the focus to that wid-) 209.25 632.33 T
4469
(get.) 170.1 620.33 T
4470
1 F
4471
(Pr) 152.1 605.33 T
4472
(oblem #43:) 162.46 605.33 T
4473
5 F
4474
(%D) 211.88 605.33 T
4475
3 F
4476
( substitutions are no longer supported in bindings, nor are the event) 223.87 605.33 T
4477
(types) 152.1 593.33 T
4478
5 F
4479
(CirculateRequest) 175.7 593.33 T
4480
3 F
4481
(,) 271.64 593.33 T
4482
5 F
4483
(Conf) 276.64 593.33 T
4484
(igureRequest) 300.63 593.33 T
4485
3 F
4486
(,) 372.59 593.33 T
4487
5 F
4488
(MapRequest) 377.59 593.33 T
4489
3 F
4490
(, and) 437.55 593.33 T
4491
5 F
4492
(Resiz-) 459.48 593.33 T
4493
(eRequest) 152.1 581.33 T
4494
3 F
4495
(.) 200.07 581.33 T
4496
2 F
4497
-0.25 (Solution:) 170.1 569.33 P
4498
3 F
4499
-0.25 (Use the name of the display instead of %D to identify a display; you can get) 209 569.33 P
4500
(the display name with the) 170.1 557.33 T
4501
5 F
4502
(winfo screen) 275.31 557.33 T
4503
3 F
4504
( command. The desupported event types) 347.27 557.33 T
4505
(never really worked anyway) 170.1 545.33 T
4506
(, so there should be no code that depends on them.) 282.96 545.33 T
4507
1 F
4508
(Pr) 152.1 530.33 T
4509
(oblem #44:) 162.46 530.33 T
4510
5 F
4511
(%) 211.88 530.33 T
4512
3 F
4513
( binding substitutions that return window identi\336ers, such as) 217.87 530.33 T
4514
5 F
4515
(%a) 461.63 530.33 T
4516
3 F
4517
( and) 473.62 530.33 T
4518
5 F
4519
(%S) 493.05 530.33 T
4520
3 F
4521
(,) 505.05 530.33 T
4522
(now produce hexadecimal results instead of decimal.) 152.1 518.33 T
4523
2 F
4524
(Solution:) 170.1 506.33 T
4525
3 F
4526
(Use the) 209.25 506.33 T
4527
5 F
4528
(format) 242 506.33 T
4529
3 F
4530
( command to turn them back to decimal.) 277.98 506.33 T
4531
1 F
4532
(Pr) 152.1 491.33 T
4533
(oblem #45:) 162.46 491.33 T
4534
5 F
4535
(Enter) 211.88 491.33 T
4536
3 F
4537
(,) 241.46 491.33 T
4538
5 F
4539
(Leave) 246.46 491.33 T
4540
3 F
4541
(,) 276.44 491.33 T
4542
5 F
4543
(FocusIn) 281.44 491.33 T
4544
3 F
4545
(, and) 323.42 491.33 T
4546
5 F
4547
(FocusOut) 345.34 491.33 T
4548
3 F
4549
( events with detail) 393.32 491.33 T
4550
5 F
4551
(Notify-) 468.83 491.33 T
4552
(Inferior) 152.1 479.33 T
4553
3 F
4554
( are now ignored by the binding mechanism, so they\325re not visible to T) 200.07 479.33 T
4555
(cl) 483.08 479.33 T
4556
(scripts.) 152.1 467.33 T
4557
2 F
4558
-0.13 (Solution:) 170.1 455.33 P
4559
3 F
4560
-0.13 (In most cases, T) 209.12 455.33 P
4561
-0.13 (cl scripts work better if these bindings are ignored. Y) 273 455.33 P
4562
-0.13 (ou can) 483.49 455.33 P
4563
(still use C code to access these events if you really need them. Or) 170.1 443.33 T
4564
(, create bindings on) 431.18 443.33 T
4565
-0.33 (the inferior windows and use) 170.1 431.33 P
4566
5 F
4567
-0.8 (NotifyAncestor) 286.96 431.33 P
4568
3 F
4569
-0.33 ( bindings on the children instead of) 370.91 431.33 P
4570
5 F
4571
(NotifyInferior) 170.1 419.33 T
4572
3 F
4573
( bindings on the parent.) 254.05 419.33 T
4574
FMENDPAGE
4575
%%EndPage: "21" 22
4576
%%Page: "22" 22
4577
612 792 0 FMBEGINPAGE
4578
 
4579
 
4580
 
4581
(22) 98.1 668.33 T
4582
4 F
4583
(Tk4.0 Overview and Porting Guide) 359.34 668.33 T
4584
98.1 660.6 512.1 660.6 2 L
4585
0.25 H
4586
 
4587
N
4588
98.1 135 512.1 639 R
4589
7 X
4590
V
4591
FMENDPAGE
4592
%%EndPage: "22" 23
4593
%%Trailer
4594
%%BoundingBox: 0 0 612 792
4595
%%Pages: 22 1
4596
%%DocumentFonts: Helvetica-Bold
4597
%%+ Times-Bold
4598
%%+ Times-Italic
4599
%%+ Times-Roman
4600
%%+ Helvetica
4601
%%+ Courier
4602
%%+ Courier-Oblique

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.