home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / c / wxwin140 / docs / tutorial.tex / node4_ct.html < prev    next >
LaTeX Document  |  1993-04-09  |  4.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
90% dexvert Hypertext Markup Language File (text/html) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file HTML document text default (weak)
99% file LaTeX document text default
98% file exported SGML document text default
97% file exported SGML document, ASCII text default
80% TrID HyperText Markup Language with DOCTYPE default
19% TrID HyperText Markup Language default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% gt2 HTML (Hyper Text Markup Language) Datei default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/html default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 4d 6f | 72 65 20 61 64 76 61 6e |ts of Mo|re advan|
|000000b0| 63 65 64 20 66 65 61 74 | 75 72 65 73 3a 20 74 68 |ced feat|ures: th|
|000000c0| 65 20 68 65 6c 6c 6f 20 | 64 65 6d 6f 3c 2f 54 49 |e hello |demo</TI|
|000000d0| 54 4c 45 3e 0a 0a 3c 4d | 45 54 41 20 48 54 54 50 |TLE>..<M|ETA HTTP|
|000000e0| 2d 45 51 55 49 56 3d 22 | 43 6f 6e 74 65 6e 74 2d |-EQUIV="|Content-|
|000000f0| 54 79 70 65 22 20 43 4f | 4e 54 45 4e 54 3d 22 74 |Type" CO|NTENT="t|
|00000100| 65 78 74 2f 68 74 6d 6c | 3b 20 63 68 61 72 73 65 |ext/html|; charse|
|00000110| 74 3d 75 74 66 2d 38 22 | 3e 0a 3c 4d 45 54 41 20 |t=utf-8"|>.<META |
|00000120| 4e 41 4d 45 3d 22 76 69 | 65 77 70 6f 72 74 22 20 |NAME="vi|ewport" |
|00000130| 43 4f 4e 54 45 4e 54 3d | 22 77 69 64 74 68 3d 64 |CONTENT=|"width=d|
|00000140| 65 76 69 63 65 2d 77 69 | 64 74 68 2c 20 69 6e 69 |evice-wi|dth, ini|
|00000150| 74 69 61 6c 2d 73 63 61 | 6c 65 3d 31 2e 30 22 3e |tial-sca|le=1.0">|
|00000160| 0a 3c 4d 45 54 41 20 4e | 41 4d 45 3d 22 47 65 6e |.<META N|AME="Gen|
|00000170| 65 72 61 74 6f 72 22 20 | 43 4f 4e 54 45 4e 54 3d |erator" |CONTENT=|
|00000180| 22 4c 61 54 65 58 32 48 | 54 4d 4c 20 76 32 30 32 |"LaTeX2H|TML v202|
|00000190| 32 22 3e 0a 0a 3c 4c 49 | 4e 4b 20 52 45 4c 3d 22 |2">..<LI|NK REL="|
|000001a0| 53 54 59 4c 45 53 48 45 | 45 54 22 20 48 52 45 46 |STYLESHE|ET" HREF|
|000001b0| 3d 22 74 75 74 6f 72 69 | 61 6c 2e 63 73 73 22 3e |="tutori|al.css">|
|000001c0| 0a 0a 3c 4c 49 4e 4b 20 | 52 45 4c 3d 22 6e 65 78 |..<LINK |REL="nex|
|000001d0| 74 22 20 48 52 45 46 3d | 22 6e 6f 64 65 35 5f 6d |t" HREF=|"node5_m|
|000001e0| 6e 2e 68 74 6d 6c 22 3e | 0a 3c 4c 49 4e 4b 20 52 |n.html">|.<LINK R|
|000001f0| 45 4c 3d 22 70 72 65 76 | 69 6f 75 73 22 20 48 52 |EL="prev|ious" HR|
|00000200| 45 46 3d 22 6e 6f 64 65 | 33 5f 6d 6e 2e 68 74 6d |EF="node|3_mn.htm|
|00000210| 6c 22 3e 0a 3c 4c 49 4e | 4b 20 52 45 4c 3d 22 75 |l">.<LIN|K REL="u|
|00000220| 70 22 20 48 52 45 46 3d | 22 6e 6f 64 65 32 5f 6d |p" HREF=|"node2_m|
|00000230| 6e 2e 68 74 6d 6c 22 3e | 0a 3c 4c 49 4e 4b 20 52 |n.html">|.<LINK R|
|00000240| 45 4c 3d 22 6e 65 78 74 | 22 20 48 52 45 46 3d 22 |EL="next|" HREF="|
|00000250| 6e 6f 64 65 35 5f 6d 6e | 2e 68 74 6d 6c 22 3e 0a |node5_mn|.html">.|
|00000260| 3c 2f 48 45 41 44 3e 0a | 20 0a 3c 42 4f 44 59 20 |</HEAD>.| .<BODY |
|00000270| 62 67 63 6f 6c 6f 72 3d | 22 23 66 66 66 66 66 66 |bgcolor=|"#ffffff|
|00000280| 22 20 74 65 78 74 3d 22 | 23 30 30 30 30 30 30 22 |" text="|#000000"|
|00000290| 20 6c 69 6e 6b 3d 22 23 | 39 39 34 34 45 45 22 20 | link="#|9944EE" |
|000002a0| 76 6c 69 6e 6b 3d 22 23 | 30 30 30 30 66 66 22 20 |vlink="#|0000ff" |
|000002b0| 61 6c 69 6e 6b 3d 22 23 | 30 30 66 66 30 30 22 3e |alink="#|00ff00">|
|000002c0| 0a 0a 3c 48 32 3e 3c 41 | 20 49 44 3d 22 53 45 43 |..<H2><A| ID="SEC|
|000002d0| 54 49 4f 4e 30 30 30 32 | 32 30 30 30 30 30 30 30 |TION0002|20000000|
|000002e0| 30 30 30 30 30 30 30 30 | 22 3e 0a 4d 6f 72 65 20 |00000000|">.More |
|000002f0| 61 64 76 61 6e 63 65 64 | 20 66 65 61 74 75 72 65 |advanced| feature|
|00000300| 73 3a 20 74 68 65 20 3c | 49 3e 68 65 6c 6c 6f 3c |s: the <|I>hello<|
|00000310| 2f 49 3e 20 64 65 6d 6f | 3c 2f 41 3e 0a 3c 2f 48 |/I> demo|</A>.</H|
|00000320| 32 3e 0a 0a 3c 50 3e 0a | 54 68 65 20 60 68 65 6c |2>..<P>.|The `hel|
|00000330| 6c 6f 27 20 28 73 6f 75 | 72 63 65 20 66 69 6c 65 |lo' (sou|rce file|
|00000340| 73 2c 20 3c 54 54 3e 68 | 65 6c 6c 6f 2e 63 63 3c |s, <TT>h|ello.cc<|
|00000350| 2f 54 54 3e 20 61 6e 64 | 20 3c 54 54 3e 68 65 6c |/TT> and| <TT>hel|
|00000360| 6c 6f 2e 68 3c 2f 54 54 | 3e 20 73 68 6f 77 73 20 |lo.h</TT|> shows |
|00000370| 6f 66 66 0a 73 6f 6d 65 | 20 6d 6f 72 65 20 77 78 |off.some| more wx|
|00000380| 57 69 6e 64 6f 77 73 20 | 66 65 61 74 75 72 65 73 |Windows |features|
|00000390| 20 28 73 65 65 20 46 69 | 67 75 72 65 73 20 3c 41 | (see Fi|gures <A|
|000003a0| 20 48 52 45 46 3d 22 6e | 6f 64 65 34 5f 63 74 2e | HREF="n|ode4_ct.|
|000003b0| 68 74 6d 6c 23 64 65 6d | 6f 2d 78 22 3e 3c 49 4d |html#dem|o-x"><IM|
|000003c0| 47 20 20 41 4c 54 3d 22 | 5b 2a 5d 22 20 53 52 43 |G ALT="|[*]" SRC|
|000003d0| 3d 22 63 72 6f 73 73 72 | 65 66 2e 70 6e 67 22 3e |="crossr|ef.png">|
|000003e0| 3c 2f 41 3e 20 61 6e 64 | 0a 3c 41 20 48 52 45 46 |</A> and|.<A HREF|
|000003f0| 3d 22 6e 6f 64 65 34 5f | 63 74 2e 68 74 6d 6c 23 |="node4_|ct.html#|
|00000400| 64 65 6d 6f 2d 6d 73 22 | 3e 3c 49 4d 47 20 20 41 |demo-ms"|><IMG A|
|00000410| 4c 54 3d 22 5b 2a 5d 22 | 20 53 52 43 3d 22 63 72 |LT="[*]"| SRC="cr|
|00000420| 6f 73 73 72 65 66 2e 70 | 6e 67 22 3e 3c 2f 41 3e |ossref.p|ng"></A>|
|00000430| 29 2e 20 20 57 68 65 6e | 20 72 75 6e 2c 20 74 77 |). When| run, tw|
|00000440| 6f 20 77 69 6e 64 6f 77 | 73 20 70 6f 70 20 75 70 |o window|s pop up|
|00000450| 2e 20 4f 6e 65 20 69 73 | 20 74 68 65 20 60 6d 61 |. One is| the `ma|
|00000460| 69 6e 20 77 69 6e 64 6f | 77 27 2c 0a 77 69 74 68 |in windo|w',.with|
|00000470| 20 74 77 6f 20 73 75 62 | 77 69 6e 64 6f 77 73 20 | two sub|windows |
|00000480| 2d 20 61 20 70 61 6e 65 | 6c 20 63 6f 6e 74 61 69 |- a pane|l contai|
|00000490| 6e 69 6e 67 20 76 61 72 | 69 6f 75 73 20 60 77 69 |ning var|ious `wi|
|000004a0| 64 67 65 74 73 27 2c 20 | 61 6e 64 20 61 20 74 65 |dgets', |and a te|
|000004b0| 78 74 0a 77 69 6e 64 6f | 77 2e 20 20 54 68 65 20 |xt.windo|w. The |
|000004c0| 6f 74 68 65 72 20 63 6f | 6e 74 61 69 6e 73 20 61 |other co|ntains a|
|000004d0| 20 63 61 6e 76 61 73 2c | 20 64 72 61 77 69 6e 67 | canvas,| drawing|
|000004e0| 20 73 6f 6d 65 20 73 69 | 6d 70 6c 65 20 73 68 61 | some si|mple sha|
|000004f0| 70 65 73 2c 20 61 6e 64 | 0a 61 6c 6c 6f 77 69 6e |pes, and|.allowin|
|00000500| 67 20 74 68 65 20 75 73 | 65 72 20 74 6f 20 64 6f |g the us|er to do|
|00000510| 6f 64 6c 65 20 6f 6e 20 | 69 74 20 62 79 20 64 72 |odle on |it by dr|
|00000520| 61 67 67 69 6e 67 20 77 | 69 74 68 20 74 68 65 20 |agging w|ith the |
|00000530| 6c 65 66 74 20 6d 6f 75 | 73 65 0a 62 75 74 74 6f |left mou|se.butto|
|00000540| 6e 2e 20 20 54 68 65 20 | 63 61 6e 76 61 73 20 63 |n. The |canvas c|
|00000550| 6f 6e 74 65 6e 74 73 20 | 63 61 6e 20 62 65 20 73 |ontents |can be s|
|00000560| 63 61 6c 65 64 20 61 6e | 64 20 70 72 69 6e 74 65 |caled an|d printe|
|00000570| 64 20 6f 75 74 2c 20 65 | 69 74 68 65 72 20 74 6f |d out, e|ither to|
|00000580| 20 61 0a 70 72 69 6e 74 | 65 72 20 73 75 70 70 6f | a.print|er suppo|
|00000590| 72 74 65 64 20 62 79 20 | 57 69 6e 64 6f 77 73 20 |rted by |Windows |
|000005a0| 6f 72 20 74 6f 20 50 6f | 73 74 53 63 72 69 70 74 |or to Po|stScript|
|000005b0| 2c 20 77 72 69 74 69 6e | 67 20 74 6f 20 61 0a 66 |, writin|g to a.f|
|000005c0| 69 6c 65 20 6f 72 20 69 | 6e 76 6f 6b 69 6e 67 20 |ile or i|nvoking |
|000005d0| 74 68 65 20 70 72 69 6e | 74 65 72 20 64 69 72 65 |the prin|ter dire|
|000005e0| 63 74 6c 79 2e 20 55 6e | 64 65 72 20 57 69 6e 64 |ctly. Un|der Wind|
|000005f0| 6f 77 73 2c 20 74 68 65 | 20 67 72 61 70 68 69 63 |ows, the| graphic|
|00000600| 20 6d 61 79 20 62 65 0a | 63 6f 70 69 65 64 20 74 | may be.|copied t|
|00000610| 6f 20 74 68 65 20 63 6c | 69 70 62 6f 61 72 64 20 |o the cl|ipboard |
|00000620| 61 73 20 61 20 6d 65 74 | 61 66 69 6c 65 2e 0a 0a |as a met|afile...|
|00000630| 3c 50 3e 0a 0a 3c 44 49 | 56 20 63 6c 61 73 73 3d |<P>..<DI|V class=|
|00000640| 22 43 45 4e 54 45 52 22 | 3e 3c 41 20 49 44 3d 22 |"CENTER"|><A ID="|
|00000650| 64 65 6d 6f 2d 78 22 3e | 3c 2f 41 3e 3c 41 20 49 |demo-x">|</A><A I|
|00000660| 44 3d 22 35 32 22 3e 3c | 2f 41 3e 0a 3c 54 41 42 |D="52"><|/A>.<TAB|
|00000670| 4c 45 3e 0a 3c 43 41 50 | 54 49 4f 4e 20 63 6c 61 |LE>.<CAP|TION cla|
|00000680| 73 73 3d 22 42 4f 54 54 | 4f 4d 22 3e 3c 53 54 52 |ss="BOTT|OM"><STR|
|00000690| 4f 4e 47 3e 46 69 67 75 | 72 65 3a 3c 2f 53 54 52 |ONG>Figu|re:</STR|
|000006a0| 4f 4e 47 3e 0a 44 65 6d | 6f 20 70 72 6f 67 72 61 |ONG>.Dem|o progra|
|000006b0| 6d 20 72 75 6e 6e 69 6e | 67 20 75 6e 64 65 72 20 |m runnin|g under |
|000006c0| 58 3c 2f 43 41 50 54 49 | 4f 4e 3e 0a 3c 54 52 3e |X</CAPTI|ON>.<TR>|
|000006d0| 3c 54 44 3e 3c 49 4d 47 | 0a 20 53 54 59 4c 45 3d |<TD><IMG|. STYLE=|
|000006e0| 22 22 20 53 52 43 3d 22 | 69 6d 67 31 2e 70 6e 67 |"" SRC="|img1.png|
|000006f0| 22 0a 20 41 4c 54 3d 22 | 5c 62 65 67 69 6e 7b 66 |". ALT="|\begin{f|
|00000700| 69 67 75 72 65 7d 5c 62 | 65 67 69 6e 7b 64 69 73 |igure}\b|egin{dis|
|00000710| 70 6c 61 79 6d 61 74 68 | 7d 5c 70 73 62 6f 78 74 |playmath|}\psboxt|
|00000720| 6f 28 31 31 63 6d 3b 30 | 63 6d 29 7b 68 65 6c 6c |o(11cm;0|cm){hell|
|00000730| 6f 5f 78 2e 65 70 73 7d | 0a 5c 65 6e 64 7b 64 69 |o_x.eps}|.\end{di|
|00000740| 73 70 6c 61 79 6d 61 74 | 68 7d 5c 70 61 72 0a 5c |splaymat|h}\par.\|
|00000750| 65 6e 64 7b 66 69 67 75 | 72 65 7d 22 3e 3c 2f 54 |end{figu|re}"></T|
|00000760| 44 3e 3c 2f 54 52 3e 0a | 3c 2f 54 41 42 4c 45 3e |D></TR>.|</TABLE>|
|00000770| 0a 3c 2f 44 49 56 3e 0a | 0a 3c 44 49 56 20 63 6c |.</DIV>.|.<DIV cl|
|00000780| 61 73 73 3d 22 43 45 4e | 54 45 52 22 3e 3c 41 20 |ass="CEN|TER"><A |
|00000790| 49 44 3d 22 64 65 6d 6f | 2d 6d 73 22 3e 3c 2f 41 |ID="demo|-ms"></A|
|000007a0| 3e 3c 41 20 49 44 3d 22 | 35 37 22 3e 3c 2f 41 3e |><A ID="|57"></A>|
|000007b0| 0a 3c 54 41 42 4c 45 3e | 0a 3c 43 41 50 54 49 4f |.<TABLE>|.<CAPTIO|
|000007c0| 4e 20 63 6c 61 73 73 3d | 22 42 4f 54 54 4f 4d 22 |N class=|"BOTTOM"|
|000007d0| 3e 3c 53 54 52 4f 4e 47 | 3e 46 69 67 75 72 65 3a |><STRONG|>Figure:|
|000007e0| 3c 2f 53 54 52 4f 4e 47 | 3e 0a 44 65 6d 6f 20 70 |</STRONG|>.Demo p|
|000007f0| 72 6f 67 72 61 6d 20 72 | 75 6e 6e 69 6e 67 20 75 |rogram r|unning u|
|00000800| 6e 64 65 72 20 57 69 6e | 64 6f 77 73 20 33 3c 2f |nder Win|dows 3</|
|00000810| 43 41 50 54 49 4f 4e 3e | 0a 3c 54 52 3e 3c 54 44 |CAPTION>|.<TR><TD|
|00000820| 3e 3c 49 4d 47 0a 20 53 | 54 59 4c 45 3d 22 22 20 |><IMG. S|TYLE="" |
|00000830| 53 52 43 3d 22 69 6d 67 | 32 2e 70 6e 67 22 0a 20 |SRC="img|2.png". |
|00000840| 41 4c 54 3d 22 5c 62 65 | 67 69 6e 7b 66 69 67 75 |ALT="\be|gin{figu|
|00000850| 72 65 7d 5c 62 65 67 69 | 6e 7b 64 69 73 70 6c 61 |re}\begi|n{displa|
|00000860| 79 6d 61 74 68 7d 5c 70 | 73 62 6f 78 74 6f 28 31 |ymath}\p|sboxto(1|
|00000870| 31 63 6d 3b 30 63 6d 29 | 7b 68 65 6c 6c 6f 5f 77 |1cm;0cm)|{hello_w|
|00000880| 2e 65 70 73 7d 0a 5c 65 | 6e 64 7b 64 69 73 70 6c |.eps}.\e|nd{displ|
|00000890| 61 79 6d 61 74 68 7d 5c | 65 6e 64 7b 66 69 67 75 |aymath}\|end{figu|
|000008a0| 72 65 7d 22 3e 3c 2f 54 | 44 3e 3c 2f 54 52 3e 0a |re}"></T|D></TR>.|
|000008b0| 3c 2f 54 41 42 4c 45 3e | 0a 3c 2f 44 49 56 3e 0a |</TABLE>|.</DIV>.|
|000008c0| 0a 3c 50 3e 0a 42 6f 74 | 68 20 66 72 61 6d 65 73 |.<P>.Bot|h frames|
|000008d0| 20 63 61 6e 20 62 65 20 | 72 65 73 69 7a 65 64 2c | can be |resized,|
|000008e0| 20 61 6e 64 20 74 68 65 | 20 73 75 62 77 69 6e 64 | and the| subwind|
|000008f0| 6f 77 73 20 77 69 6c 6c | 20 62 65 20 72 65 73 69 |ows will| be resi|
|00000900| 7a 65 64 0a 69 6e 20 61 | 6e 20 61 70 70 72 6f 70 |zed.in a|n approp|
|00000910| 72 69 61 74 65 20 6d 61 | 6e 6e 65 72 2e 20 54 68 |riate ma|nner. Th|
|00000920| 65 20 74 65 78 74 20 73 | 75 62 77 69 6e 64 6f 77 |e text s|ubwindow|
|00000930| 20 63 61 6e 20 62 65 20 | 73 63 72 6f 6c 6c 65 64 | can be |scrolled|
|00000940| 3b 0a 6f 6e 20 74 68 65 | 20 70 61 6e 65 6c 2c 20 |;.on the| panel, |
|00000950| 61 20 62 75 74 74 6f 6e | 20 63 61 6e 20 62 65 20 |a button| can be |
|00000960| 70 72 65 73 73 65 64 20 | 66 6f 72 20 74 68 65 20 |pressed |for the |
|00000970| 70 72 6f 67 72 61 6d 20 | 74 6f 20 70 72 6f 6d 70 |program |to promp|
|00000980| 74 20 74 68 65 20 75 73 | 65 72 0a 77 69 74 68 20 |t the us|er.with |
|00000990| 74 65 78 74 20 77 69 74 | 68 20 77 68 69 63 68 20 |text wit|h which |
|000009a0| 74 6f 20 73 65 74 20 74 | 68 65 20 73 74 61 74 75 |to set t|he statu|
|000009b0| 73 20 62 61 72 2e 20 43 | 6c 69 63 6b 69 6e 67 20 |s bar. C|licking |
|000009c0| 6f 6e 20 74 68 65 0a 6c | 69 73 74 20 62 6f 78 20 |on the.l|ist box |
|000009d0| 77 72 69 74 65 73 20 61 | 20 6c 69 6e 65 20 6f 66 |writes a| line of|
|000009e0| 20 74 65 78 74 20 69 6e | 74 6f 20 74 68 65 20 74 | text in|to the t|
|000009f0| 65 78 74 20 77 69 6e 64 | 6f 77 2e 0a 0a 3c 50 3e |ext wind|ow...<P>|
|00000a00| 0a 54 68 65 20 3c 42 3e | 46 69 6c 65 3c 2f 42 3e |.The <B>|File</B>|
|00000a10| 20 6d 65 6e 75 20 68 61 | 73 20 6f 70 74 69 6f 6e | menu ha|s option|
|00000a20| 73 20 66 6f 72 20 73 65 | 6c 65 63 74 69 6e 67 20 |s for se|lecting |
|00000a30| 74 68 65 20 60 6d 61 70 | 70 69 6e 67 20 6d 6f 64 |the `map|ping mod|
|00000a40| 65 27 20 28 6c 6f 67 69 | 63 61 6c 0a 64 69 6d 65 |e' (logi|cal.dime|
|00000a50| 6e 73 69 6f 6e 73 29 20 | 75 73 65 64 20 69 6e 20 |nsions) |used in |
|00000a60| 64 72 61 77 69 6e 67 20 | 67 72 61 70 68 69 63 73 |drawing |graphics|
|00000a70| 2c 20 61 20 7a 6f 6f 6d | 20 6f 70 74 69 6f 6e 2c |, a zoom| option,|
|00000a80| 20 61 6e 64 20 61 6e 20 | 6f 70 74 69 6f 6e 20 66 | and an |option f|
|00000a90| 6f 72 0a 6c 6f 61 64 69 | 6e 67 20 61 20 66 69 6c |or.loadi|ng a fil|
|00000aa0| 65 20 69 6e 74 6f 20 74 | 68 65 20 74 65 78 74 20 |e into t|he text |
|00000ab0| 73 75 62 77 69 6e 64 6f | 77 20 75 73 69 6e 67 20 |subwindo|w using |
|00000ac0| 61 20 66 69 6c 65 20 73 | 65 6c 65 63 74 6f 72 20 |a file s|elector |
|00000ad0| 74 6f 6f 6c 2e 0a 0a 3c | 50 3e 0a 54 68 65 20 3c |tool...<|P>.The <|
|00000ae0| 42 3e 54 69 6d 65 72 3c | 2f 42 3e 20 6d 65 6e 75 |B>Timer<|/B> menu|
|00000af0| 20 61 6c 6c 6f 77 73 20 | 74 68 65 20 75 73 65 72 | allows |the user|
|00000b00| 20 74 6f 20 73 77 69 74 | 63 68 20 61 20 74 69 6d | to swit|ch a tim|
|00000b10| 65 72 20 6f 6e 20 61 6e | 64 20 6f 66 66 3b 20 77 |er on an|d off; w|
|00000b20| 68 65 6e 20 6f 6e 2c 0a | 73 6f 6d 65 20 74 65 78 |hen on,.|some tex|
|00000b30| 74 20 67 65 74 73 20 77 | 72 69 74 74 65 6e 20 74 |t gets w|ritten t|
|00000b40| 6f 20 74 68 65 20 74 65 | 78 74 20 73 75 62 77 69 |o the te|xt subwi|
|00000b50| 6e 64 6f 77 20 65 76 65 | 72 79 20 66 69 76 65 20 |ndow eve|ry five |
|00000b60| 73 65 63 6f 6e 64 73 2e | 0a 0a 3c 50 3e 0a 54 68 |seconds.|..<P>.Th|
|00000b70| 65 20 3c 42 3e 43 75 72 | 73 6f 72 3c 2f 42 3e 20 |e <B>Cur|sor</B> |
|00000b80| 6d 65 6e 75 20 65 6e 61 | 62 6c 65 73 20 74 68 65 |menu ena|bles the|
|00000b90| 20 63 61 6e 76 61 73 20 | 63 75 72 73 6f 72 20 74 | canvas |cursor t|
|00000ba0| 6f 20 62 65 20 63 68 61 | 6e 67 65 64 2c 20 61 6e |o be cha|nged, an|
|00000bb0| 64 20 6c 65 74 73 0a 74 | 68 65 20 70 6f 74 65 6e |d lets.t|he poten|
|00000bc0| 74 69 61 6c 20 77 78 57 | 69 6e 64 6f 77 73 20 70 |tial wxW|indows p|
|00000bd0| 72 6f 67 72 61 6d 6d 65 | 72 20 76 69 65 77 20 74 |rogramme|r view t|
|00000be0| 68 65 20 61 76 61 69 6c | 61 62 6c 65 20 73 74 61 |he avail|able sta|
|00000bf0| 6e 64 61 72 64 20 63 75 | 72 73 6f 72 73 2e 0a 0a |ndard cu|rsors...|
|00000c00| 3c 50 3e 0a 54 68 65 20 | 3c 42 3e 41 62 6f 75 74 |<P>.The |<B>About|
|00000c10| 3c 2f 42 3e 20 6f 70 74 | 69 6f 6e 20 6f 66 20 74 |</B> opt|ion of t|
|00000c20| 68 65 20 48 65 6c 70 20 | 6d 65 6e 75 20 70 6f 70 |he Help |menu pop|
|00000c30| 73 20 75 70 20 61 20 64 | 69 61 6c 6f 67 20 62 6f |s up a d|ialog bo|
|00000c40| 78 20 77 69 74 68 20 73 | 6f 6d 65 0a 69 6e 66 6f |x with s|ome.info|
|00000c50| 72 6d 61 74 69 6f 6e 2e | 0a 0a 3c 50 3e 0a 54 68 |rmation.|..<P>.Th|
|00000c60| 69 73 20 72 65 70 72 65 | 73 65 6e 74 73 20 61 20 |is repre|sents a |
|00000c70| 66 61 69 72 20 61 6d 6f | 75 6e 74 20 6f 66 20 47 |fair amo|unt of G|
|00000c80| 55 49 20 66 75 6e 63 74 | 69 6f 6e 61 6c 69 74 79 |UI funct|ionality|
|00000c90| 20 66 6f 72 20 61 20 72 | 65 6c 61 74 69 76 65 6c | for a r|elativel|
|00000ca0| 79 0a 73 6d 61 6c 6c 20 | 70 72 6f 67 72 61 6d 2e |y.small |program.|
|00000cb0| 20 54 68 69 73 20 69 73 | 20 62 65 63 61 75 73 65 | This is| because|
|00000cc0| 20 77 78 57 69 6e 64 6f | 77 73 20 63 61 6c 6c 73 | wxWindo|ws calls|
|00000cd0| 20 61 72 65 20 68 69 67 | 68 20 6c 65 76 65 6c 20 | are hig|h level |
|00000ce0| 28 63 72 65 61 74 69 6e | 67 0a 61 20 77 6f 72 6b |(creatin|g.a work|
|00000cf0| 69 6e 67 20 74 65 78 74 | 20 77 69 6e 64 6f 77 20 |ing text| window |
|00000d00| 69 73 20 61 20 73 69 6e | 67 6c 65 20 63 61 6c 6c |is a sin|gle call|
|00000d10| 29 20 61 6e 64 20 62 65 | 63 61 75 73 65 20 61 6e |) and be|cause an|
|00000d20| 20 6f 62 6a 65 63 74 2d | 6f 72 69 65 6e 74 65 64 | object-|oriented|
|00000d30| 0a 61 70 70 72 6f 61 63 | 68 20 69 73 20 74 61 6b |.approac|h is tak|
|00000d40| 65 6e 2c 20 77 68 65 72 | 65 20 6d 75 63 68 20 64 |en, wher|e much d|
|00000d50| 65 66 61 75 6c 74 20 66 | 75 6e 63 74 69 6f 6e 61 |efault f|unctiona|
|00000d60| 6c 69 74 79 20 69 73 20 | 70 72 6f 76 69 64 65 64 |lity is |provided|
|00000d70| 2e 0a 0a 3c 50 3e 0a 4e | 6f 74 65 20 61 6c 73 6f |...<P>.N|ote also|
|00000d80| 20 74 68 65 20 6c 61 63 | 6b 20 6f 66 20 65 78 70 | the lac|k of exp|
|00000d90| 6c 69 63 69 74 20 63 6f | 6f 72 64 69 6e 61 74 65 |licit co|ordinate|
|00000da0| 73 20 6f 72 20 73 69 7a | 65 73 20 69 6e 20 74 68 |s or siz|es in th|
|00000db0| 65 20 70 61 6e 65 6c 20 | 69 74 65 6d 0a 63 72 65 |e panel |item.cre|
|00000dc0| 61 74 69 6f 6e 20 63 61 | 6c 6c 73 2e 20 54 68 69 |ation ca|lls. Thi|
|00000dd0| 73 20 69 73 20 74 68 65 | 20 70 72 65 66 65 72 72 |s is the| preferr|
|00000de0| 65 64 20 61 70 70 72 6f | 61 63 68 2c 20 6c 65 61 |ed appro|ach, lea|
|00000df0| 76 69 6e 67 20 77 78 57 | 69 6e 64 6f 77 73 20 74 |ving wxW|indows t|
|00000e00| 6f 20 6c 61 79 0a 6f 75 | 74 20 74 68 65 20 69 74 |o lay.ou|t the it|
|00000e10| 65 6d 73 20 66 72 6f 6d | 20 6c 65 66 74 20 74 6f |ems from| left to|
|00000e20| 20 72 69 67 68 74 20 61 | 6e 64 20 74 6f 70 20 74 | right a|nd top t|
|00000e30| 6f 20 62 6f 74 74 6f 6d | 2c 20 77 69 74 68 20 74 |o bottom|, with t|
|00000e40| 68 65 20 75 73 65 72 0a | 69 6e 74 65 72 6a 65 63 |he user.|interjec|
|00000e50| 74 69 6e 67 20 74 68 65 | 20 6f 63 63 61 73 69 6f |ting the| occasio|
|00000e60| 6e 61 6c 20 3c 42 3e 4e | 65 77 4c 69 6e 65 3c 2f |nal <B>N|ewLine</|
|00000e70| 42 3e 20 63 61 6c 6c 2e | 20 20 45 78 70 6c 69 63 |B> call.| Explic|
|00000e80| 69 74 20 70 6f 73 69 74 | 69 6f 6e 69 6e 67 20 69 |it posit|ioning i|
|00000e90| 73 0a 6e 6f 74 20 72 65 | 63 6f 6d 6d 65 6e 64 65 |s.not re|commende|
|00000ea0| 64 20 73 69 6e 63 65 20 | 69 74 20 69 73 20 6c 65 |d since |it is le|
|00000eb0| 73 73 20 64 65 76 69 63 | 65 20 69 6e 64 65 70 65 |ss devic|e indepe|
|00000ec0| 6e 64 65 6e 74 2c 20 62 | 75 74 20 63 61 6e 20 62 |ndent, b|ut can b|
|00000ed0| 65 20 61 63 68 69 65 76 | 65 64 0a 62 79 20 75 73 |e achiev|ed.by us|
|00000ee0| 69 6e 67 20 6d 6f 72 65 | 20 70 61 72 61 6d 65 74 |ing more| paramet|
|00000ef0| 65 72 73 20 74 6f 20 74 | 68 65 20 63 72 65 61 74 |ers to t|he creat|
|00000f00| 69 6f 6e 20 63 61 6c 6c | 73 2c 20 6f 72 20 62 79 |ion call|s, or by|
|00000f10| 20 75 73 69 6e 67 20 3c | 42 3e 53 65 74 53 69 7a | using <|B>SetSiz|
|00000f20| 65 3c 2f 42 3e 20 61 66 | 74 65 72 20 61 6e 20 69 |e</B> af|ter an i|
|00000f30| 74 65 6d 20 68 61 73 20 | 62 65 65 6e 20 63 72 65 |tem has |been cre|
|00000f40| 61 74 65 64 2e 20 20 43 | 6f 6f 72 64 69 6e 61 74 |ated. C|oordinat|
|00000f50| 65 73 20 61 6e 64 20 73 | 69 7a 65 73 20 64 65 66 |es and s|izes def|
|00000f60| 61 75 6c 74 0a 74 6f 20 | 2d 31 2c 20 77 68 69 63 |ault.to |-1, whic|
|00000f70| 68 20 74 65 6c 6c 73 20 | 77 78 57 69 6e 64 6f 77 |h tells |wxWindow|
|00000f80| 73 20 74 6f 20 63 68 6f | 6f 73 65 20 61 70 70 72 |s to cho|ose appr|
|00000f90| 6f 70 72 69 61 74 65 20 | 70 6f 73 69 74 69 6f 6e |opriate |position|
|00000fa0| 69 6e 67 20 61 6e 64 0a | 73 69 7a 69 6e 67 2e 20 |ing and.|sizing. |
|00000fb0| 20 49 6e 20 74 68 69 73 | 20 65 78 61 6d 70 6c 65 | In this| example|
|00000fc0| 2c 20 74 68 65 20 77 69 | 6e 64 6f 77 73 20 61 72 |, the wi|ndows ar|
|00000fd0| 65 20 65 78 70 6c 69 63 | 69 74 6c 79 20 73 69 7a |e explic|itly siz|
|00000fe0| 65 64 2c 20 62 75 74 20 | 79 6f 75 20 6d 61 79 0a |ed, but |you may.|
|00000ff0| 73 69 7a 65 20 61 20 66 | 72 61 6d 65 20 6f 72 20 |size a f|rame or |
|00001000| 70 61 6e 65 6c 20 74 6f | 20 66 69 74 20 61 72 6f |panel to| fit aro|
|00001010| 75 6e 64 20 69 74 73 20 | 63 6f 6e 74 65 6e 74 73 |und its |contents|
|00001020| 20 62 79 20 63 61 6c 6c | 69 6e 67 20 3c 42 3e 46 | by call|ing <B>F|
|00001030| 69 74 3c 2f 42 3e 2e 0a | 0a 3c 50 3e 0a 3c 42 3e |it</B>..|.<P>.<B>|
|00001040| 4d 79 46 72 61 6d 65 27 | 73 3c 2f 42 3e 20 3c 42 |MyFrame'|s</B> <B|
|00001050| 3e 4f 6e 53 69 7a 65 3c | 2f 42 3e 20 6d 65 6d 62 |>OnSize<|/B> memb|
|00001060| 65 72 20 73 69 7a 65 73 | 20 65 61 63 68 20 73 75 |er sizes| each su|
|00001070| 62 77 69 6e 64 6f 77 20 | 69 6e 20 70 72 6f 70 6f |bwindow |in propo|
|00001080| 72 74 69 6f 6e 0a 74 6f | 20 74 68 65 20 6e 65 77 |rtion.to| the new|
|00001090| 20 73 69 7a 65 20 6f 66 | 20 74 68 65 20 66 72 61 | size of| the fra|
|000010a0| 6d 65 2e 20 3c 42 3e 4d | 79 43 61 6e 76 61 73 27 |me. <B>M|yCanvas'|
|000010b0| 73 3c 2f 42 3e 20 3c 42 | 3e 4f 6e 50 61 69 6e 74 |s</B> <B|>OnPaint|
|000010c0| 3c 2f 42 3e 20 64 72 61 | 77 73 20 61 0a 63 6f 75 |</B> dra|ws a.cou|
|000010d0| 70 6c 65 20 6f 66 20 6c | 69 6e 65 73 2c 20 61 20 |ple of l|ines, a |
|000010e0| 72 65 63 74 61 6e 67 6c | 65 20 61 6e 64 20 61 20 |rectangl|e and a |
|000010f0| 73 70 6c 69 6e 65 20 77 | 68 65 6e 65 76 65 72 20 |spline w|henever |
|00001100| 74 68 65 20 63 61 6e 76 | 61 73 20 72 65 71 75 69 |the canv|as requi|
|00001110| 72 65 73 0a 72 65 70 61 | 69 6e 74 69 6e 67 20 28 |res.repa|inting (|
|00001120| 65 2e 67 2e 20 6f 6e 20 | 63 72 65 61 74 69 6f 6e |e.g. on |creation|
|00001130| 2c 20 61 6e 64 20 77 68 | 65 6e 20 65 78 70 6f 73 |, and wh|en expos|
|00001140| 65 64 29 2e 20 54 68 65 | 20 3c 42 3e 4f 6e 45 76 |ed). The| <B>OnEv|
|00001150| 65 6e 74 3c 2f 42 3e 0a | 6d 65 6d 62 65 72 20 63 |ent</B>.|member c|
|00001160| 68 65 63 6b 73 20 66 6f | 72 20 6d 6f 75 73 65 20 |hecks fo|r mouse |
|00001170| 64 72 61 67 67 69 6e 67 | 2c 20 61 6e 64 20 64 72 |dragging|, and dr|
|00001180| 61 77 73 20 61 20 6c 69 | 6e 65 20 66 72 6f 6d 20 |aws a li|ne from |
|00001190| 74 68 65 20 6c 61 73 74 | 20 70 6f 69 6e 74 0a 74 |the last| point.t|
|000011a0| 6f 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 70 6f |o the cu|rrent po|
|000011b0| 73 69 74 69 6f 6e 2e 20 | 20 53 63 72 6f 6c 6c 69 |sition. | Scrolli|
|000011c0| 6e 67 20 74 68 65 20 63 | 61 6e 76 61 73 20 61 6e |ng the c|anvas an|
|000011d0| 64 20 73 75 62 73 65 71 | 75 65 6e 74 0a 72 65 70 |d subseq|uent.rep|
|000011e0| 61 69 6e 74 69 6e 67 20 | 69 73 20 68 61 6e 64 6c |ainting |is handl|
|000011f0| 65 64 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |ed autom|atically|
|00001200| 20 62 79 20 77 78 57 69 | 6e 64 6f 77 73 2e 0a 0a | by wxWi|ndows...|
|00001210| 3c 50 3e 0a 46 69 6e 61 | 6c 6c 79 2c 20 74 77 6f |<P>.Fina|lly, two|
|00001220| 20 63 61 6c 6c 62 61 63 | 6b 20 66 75 6e 63 74 69 | callbac|k functi|
|00001230| 6f 6e 73 20 64 65 6d 6f | 6e 73 74 72 61 74 65 20 |ons demo|nstrate |
|00001240| 70 6f 70 70 69 6e 67 20 | 75 70 20 64 69 61 6c 6f |popping |up dialo|
|00001250| 67 20 62 6f 78 65 73 2c | 0a 73 65 74 74 69 6e 67 |g boxes,|.setting|
|00001260| 20 74 68 65 20 73 74 61 | 74 75 73 20 6c 69 6e 65 | the sta|tus line|
|00001270| 2c 20 61 6e 64 20 69 6e | 73 65 72 74 69 6e 67 20 |, and in|serting |
|00001280| 74 65 78 74 20 69 6e 74 | 6f 20 61 20 74 65 78 74 |text int|o a text|
|00001290| 20 77 69 6e 64 6f 77 2e | 0a 0a 3c 50 3e 0a 54 68 | window.|..<P>.Th|
|000012a0| 69 73 20 64 65 6d 6f 20 | 63 61 6e 20 70 72 6f 76 |is demo |can prov|
|000012b0| 69 64 65 20 61 20 74 65 | 6d 70 6c 61 74 65 20 66 |ide a te|mplate f|
|000012c0| 6f 72 20 79 6f 75 72 20 | 6f 77 6e 20 61 70 70 6c |or your |own appl|
|000012d0| 69 63 61 74 69 6f 6e 2e | 0a 47 72 61 64 75 61 6c |ication.|.Gradual|
|000012e0| 6c 79 20 6d 6f 64 69 66 | 79 20 69 74 20 66 6f 72 |ly modif|y it for|
|000012f0| 20 79 6f 75 72 20 6f 77 | 6e 20 6e 65 65 64 73 2c | your ow|n needs,|
|00001300| 20 61 6e 64 20 79 6f 75 | 20 77 69 6c 6c 20 72 61 | and you| will ra|
|00001310| 70 69 64 6c 79 20 62 65 | 0a 77 72 69 74 69 6e 67 |pidly be|.writing|
|00001320| 20 70 6f 72 74 61 62 6c | 65 20 58 20 61 6e 64 20 | portabl|e X and |
|00001330| 57 69 6e 64 6f 77 73 20 | 33 20 70 72 6f 67 72 61 |Windows |3 progra|
|00001340| 6d 73 21 0a 0a 3c 50 3e | 0a 0a 3c 48 52 3e 0a 0a |ms!..<P>|..<HR>..|
|00001350| 3c 2f 42 4f 44 59 3e 0a | 3c 2f 48 54 4d 4c 3e 0a |</BODY>.|</HTML>.|
+--------+-------------------------+-------------------------+--------+--------+