home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Demos / Bowers Development / AppMaker 2.1.sit / AppMaker 2.1 / Examples / TCL / Gadgets / Buttons.cp < prev    next >
MacBinary  |  1997-02-26  |  2.1 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: Buttons.cp

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert MS-DOS Code Page Info (other/dosCodePage) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Tue Feb 25 21:03:53 1997, modified Tue Feb 25 21:03:53 1997, creator Think C, type ASCII, 1617 bytes "Buttons.cp" , at 0x6d1 286 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 42 75 74 74 6f 6e | 73 2e 63 70 00 00 00 00 |..Button|s.cp....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 06 51 00 | 00 01 1e af 39 4a 89 af |......Q.|....9J..|
|00000060| 39 4a 89 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |9J......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 2b c1 00 00 |........|....+...|
|00000080| 2f 2a 20 42 75 74 74 6f | 6e 73 2e 63 70 20 2d 2d |/* Butto|ns.cp --|
|00000090| 20 77 69 6e 64 6f 77 20 | 6d 65 74 68 6f 64 73 20 | window |methods |
|000000a0| 2a 2f 0d 2f 2a 20 43 72 | 65 61 74 65 64 20 32 2f |*/./* Cr|eated 2/|
|000000b0| 32 35 2f 39 37 20 31 30 | 3a 30 33 20 50 4d 20 62 |25/97 10|:03 PM b|
|000000c0| 79 20 41 70 70 4d 61 6b | 65 72 20 2a 2f 0d 0d 2f |y AppMak|er */../|
|000000d0| 2a 09 54 68 69 73 20 6d | 6f 64 75 6c 65 20 6f 76 |*.This m|odule ov|
|000000e0| 65 72 72 69 64 65 73 20 | 74 68 65 20 41 70 70 4d |errides |the AppM|
|000000f0| 61 6b 65 72 2d 67 65 6e | 65 72 61 74 65 64 20 63 |aker-gen|erated c|
|00000100| 6f 64 65 20 69 6e 20 7a | 42 75 74 74 6f 6e 73 2e |ode in z|Buttons.|
|00000110| 09 09 2a 2f 0d 2f 2a 09 | 49 74 20 70 72 6f 76 69 |..*/./*.|It provi|
|00000120| 64 65 73 20 61 20 70 6c | 61 63 65 20 66 6f 72 20 |des a pl|ace for |
|00000130| 79 6f 75 20 74 6f 20 61 | 64 64 20 79 6f 75 72 20 |you to a|dd your |
|00000140| 6f 77 6e 20 63 6f 64 65 | 20 61 6e 64 20 73 74 69 |own code| and sti|
|00000150| 6c 6c 20 62 65 20 61 62 | 6c 65 20 74 6f 09 2a 2f |ll be ab|le to.*/|
|00000160| 0d 2f 2a 09 67 65 6e 65 | 72 61 74 65 20 63 6f 64 |./*.gene|rate cod|
|00000170| 65 20 66 6f 72 20 6e 65 | 77 20 63 68 61 6e 67 65 |e for ne|w change|
|00000180| 73 20 74 6f 20 74 68 65 | 20 75 73 65 72 20 69 6e |s to the| user in|
|00000190| 74 65 72 66 61 63 65 2e | 20 20 54 68 69 73 20 6d |terface.| This m|
|000001a0| 6f 64 75 6c 65 20 77 69 | 6c 6c 09 2a 2f 0d 2f 2a |odule wi|ll.*/./*|
|000001b0| 09 6e 6f 74 20 62 65 20 | 72 65 67 65 6e 65 72 61 |.not be |regenera|
|000001c0| 74 65 64 20 62 79 20 41 | 70 70 4d 61 6b 65 72 20 |ted by A|ppMaker |
|000001d0| 75 6e 6c 65 73 73 20 79 | 6f 75 20 64 65 6c 65 74 |unless y|ou delet|
|000001e0| 65 20 69 74 2e 20 20 49 | 74 73 20 73 75 70 65 72 |e it. I|ts super|
|000001f0| 63 6c 61 73 73 2c 09 2a | 2f 0d 2f 2a 09 7a 42 75 |class,.*|/./*.zBu|
|00000200| 74 74 6f 6e 73 2c 20 6d | 61 79 20 62 65 20 72 65 |ttons, m|ay be re|
|00000210| 67 65 6e 65 72 61 74 65 | 64 20 74 6f 20 68 61 6e |generate|d to han|
|00000220| 64 6c 65 20 75 73 65 72 | 20 69 6e 74 65 72 66 61 |dle user| interfa|
|00000230| 63 65 20 63 68 61 6e 67 | 65 73 09 09 2a 2f 0d 2f |ce chang|es..*/./|
|00000240| 2a 09 77 69 74 68 6f 75 | 74 20 6c 6f 73 69 6e 67 |*.withou|t losing|
|00000250| 20 79 6f 75 72 20 68 61 | 6e 64 2d 63 6f 64 65 64 | your ha|nd-coded|
|00000260| 20 63 68 61 6e 67 65 73 | 20 74 6f 20 74 68 69 73 | changes| to this|
|00000270| 20 6d 6f 64 75 6c 65 2e | 09 09 09 09 09 2a 2f 0d | module.|.....*/.|
|00000280| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 43 6f 6d 6d 61 |.#includ|e <Comma|
|00000290| 6e 64 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |nds.h>.#|include |
|000002a0| 3c 43 42 61 72 74 65 6e | 64 65 72 2e 68 3e 0d 23 |<CBarten|der.h>.#|
|000002b0| 69 6e 63 6c 75 64 65 20 | 3c 43 44 65 63 6f 72 61 |include |<CDecora|
|000002c0| 74 6f 72 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |tor.h>.#|include |
|000002d0| 3c 43 44 69 72 65 63 74 | 6f 72 2e 68 3e 0d 23 69 |<CDirect|or.h>.#i|
|000002e0| 6e 63 6c 75 64 65 20 3c | 54 42 55 74 69 6c 69 74 |nclude <|TBUtilit|
|000002f0| 69 65 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |ies.h>.#|include |
|00000300| 3c 43 41 4d 42 75 74 74 | 6f 6e 2e 68 3e 0d 23 69 |<CAMButt|on.h>.#i|
|00000310| 6e 63 6c 75 64 65 20 3c | 43 41 4d 43 68 65 63 6b |nclude <|CAMCheck|
|00000320| 42 6f 78 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |Box.h>.#|include |
|00000330| 3c 43 41 4d 52 61 64 69 | 6f 43 6f 6e 74 72 6f 6c |<CAMRadi|oControl|
|00000340| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 22 43 6d |.h>.#inc|lude "Cm|
|00000350| 64 43 6f 64 65 73 2e 68 | 22 0d 23 69 6e 63 6c 75 |dCodes.h|".#inclu|
|00000360| 64 65 20 22 47 61 64 67 | 65 74 73 44 61 74 61 2e |de "Gadg|etsData.|
|00000370| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 22 42 75 74 |h".#incl|ude "But|
|00000380| 74 6f 6e 73 2e 68 22 0d | 0d 65 78 74 65 72 6e 09 |tons.h".|.extern.|
|00000390| 43 42 61 72 74 65 6e 64 | 65 72 09 09 2a 67 42 61 |CBartend|er..*gBa|
|000003a0| 72 74 65 6e 64 65 72 3b | 09 2f 2a 20 54 68 65 20 |rtender;|./* The |
|000003b0| 6d 65 6e 75 20 68 61 6e | 64 6c 69 6e 67 20 6f 62 |menu han|dling ob|
|000003c0| 6a 65 63 74 20 2a 2f 0d | 65 78 74 65 72 6e 09 43 |ject */.|extern.C|
|000003d0| 44 65 63 6f 72 61 74 6f | 72 09 09 2a 67 44 65 63 |Decorato|r..*gDec|
|000003e0| 6f 72 61 74 6f 72 3b 09 | 2f 2a 20 57 69 6e 64 6f |orator;.|/* Windo|
|000003f0| 77 20 64 72 65 73 73 69 | 6e 67 20 6f 62 6a 65 63 |w dressi|ng objec|
|00000400| 74 20 2a 2f 0d 0d 0d 2f | 2a 2d 2d 2d 2d 2d 2d 2d |t */.../|*-------|
|00000410| 2d 2d 2d 2a 2f 0d 76 6f | 69 64 09 43 42 75 74 74 |---*/.vo|id.CButt|
|00000420| 6f 6e 73 3a 3a 49 42 75 | 74 74 6f 6e 73 09 28 43 |ons::IBu|ttons.(C|
|00000430| 44 69 72 65 63 74 6f 72 | 09 09 09 2a 61 53 75 70 |Director|...*aSup|
|00000440| 65 72 76 69 73 6f 72 2c | 0d 09 09 09 09 09 09 09 |ervisor,|........|
|00000450| 09 09 20 43 47 61 64 67 | 65 74 73 44 61 74 61 09 |.. CGadg|etsData.|
|00000460| 2a 74 68 65 44 61 74 61 | 29 0d 7b 0d 09 69 74 73 |*theData|).{..its|
|00000470| 44 61 74 61 20 3d 20 74 | 68 65 44 61 74 61 3b 0d |Data = t|heData;.|
|00000480| 09 69 6e 68 65 72 69 74 | 65 64 3a 3a 49 5a 42 75 |.inherit|ed::IZBu|
|00000490| 74 74 6f 6e 73 20 28 61 | 53 75 70 65 72 76 69 73 |ttons (a|Supervis|
|000004a0| 6f 72 29 3b 0d 2f 2f 09 | 67 44 65 63 6f 72 61 74 |or);.//.|gDecorat|
|000004b0| 6f 72 2d 3e 53 74 61 67 | 67 65 72 57 69 6e 64 6f |or->Stag|gerWindo|
|000004c0| 77 20 28 74 68 69 73 29 | 3b 0d 0d 09 2f 2f 20 61 |w (this)|;...// a|
|000004d0| 6e 79 20 61 64 64 69 74 | 69 6f 6e 61 6c 20 69 6e |ny addit|ional in|
|000004e0| 69 74 69 61 6c 69 7a 61 | 74 69 6f 6e 20 66 6f 72 |itializa|tion for|
|000004f0| 20 79 6f 75 72 20 77 69 | 6e 64 6f 77 0d 0d 7d 20 | your wi|ndow..} |
|00000500| 2f 2a 20 49 42 75 74 74 | 6f 6e 73 20 2a 2f 0d 0d |/* IButt|ons */..|
|00000510| 2f 2a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2a 2f 0d 76 |/*------|----*/.v|
|00000520| 6f 69 64 09 43 42 75 74 | 74 6f 6e 73 3a 3a 55 70 |oid.CBut|tons::Up|
|00000530| 64 61 74 65 4d 65 6e 75 | 73 09 28 76 6f 69 64 29 |dateMenu|s.(void)|
|00000540| 0d 7b 0d 09 69 6e 68 65 | 72 69 74 65 64 3a 3a 55 |.{..inhe|rited::U|
|00000550| 70 64 61 74 65 4d 65 6e | 75 73 20 28 29 3b 0d 0d |pdateMen|us ();..|
|00000560| 0d 7d 20 2f 2a 20 55 70 | 64 61 74 65 4d 65 6e 75 |.} /* Up|dateMenu|
|00000570| 73 20 2a 2f 0d 0d 2f 2a | 2d 2d 2d 2d 2d 2d 2d 2d |s */../*|--------|
|00000580| 2d 2d 2a 2f 0d 76 6f 69 | 64 09 43 42 75 74 74 6f |--*/.voi|d.CButto|
|00000590| 6e 73 3a 3a 44 6f 43 6f | 6d 6d 61 6e 64 09 09 28 |ns::DoCo|mmand..(|
|000005a0| 6c 6f 6e 67 09 09 74 68 | 65 43 6f 6d 6d 61 6e 64 |long..th|eCommand|
|000005b0| 29 0d 7b 0d 09 73 77 69 | 74 63 68 20 28 74 68 65 |).{..swi|tch (the|
|000005c0| 43 6f 6d 6d 61 6e 64 29 | 20 7b 0d 0d 09 64 65 66 |Command)| {...def|
|000005d0| 61 75 6c 74 3a 0d 09 09 | 69 6e 68 65 72 69 74 65 |ault:...|inherite|
|000005e0| 64 3a 3a 44 6f 43 6f 6d | 6d 61 6e 64 20 28 74 68 |d::DoCom|mand (th|
|000005f0| 65 43 6f 6d 6d 61 6e 64 | 29 3b 0d 09 09 62 72 65 |eCommand|);...bre|
|00000600| 61 6b 3b 0d 09 7d 20 2f | 2a 20 73 77 69 74 63 68 |ak;..} /|* switch|
|00000610| 20 2a 2f 0d 0d 7d 20 2f | 2a 20 44 6f 43 6f 6d 6d | */..} /|* DoComm|
|00000620| 61 6e 64 20 2a 2f 0d 0d | 2f 2a 2d 2d 2d 2d 2d 2d |and */..|/*------|
|00000630| 2d 2d 2d 2d 2a 2f 0d 76 | 6f 69 64 09 43 42 75 74 |----*/.v|oid.CBut|
|00000640| 74 6f 6e 73 3a 3a 50 72 | 6f 76 69 64 65 72 43 68 |tons::Pr|oviderCh|
|00000650| 61 6e 67 65 64 09 28 43 | 43 6f 6c 6c 61 62 6f 72 |anged.(C|Collabor|
|00000660| 61 74 6f 72 09 2a 61 50 | 72 6f 76 69 64 65 72 2c |ator.*aP|rovider,|
|00000670| 0d 09 09 09 09 09 09 09 | 09 09 09 20 6c 6f 6e 67 |........|... long|
|00000680| 09 09 09 72 65 61 73 6f | 6e 2c 0d 09 09 09 09 09 |...reaso|n,......|
|00000690| 09 09 09 09 09 20 76 6f | 69 64 2a 09 09 09 69 6e |..... vo|id*...in|
|000006a0| 66 6f 29 0d 7b 0d 0d 7d | 20 2f 2a 20 50 72 6f 76 |fo).{..}| /* Prov|
|000006b0| 69 64 65 72 43 68 61 6e | 67 65 64 20 2a 2f 0d 0d |iderChan|ged */..|
|000006c0| 2f 2a 20 42 75 74 74 6f | 6e 73 2e 63 70 20 2a 2f |/* Butto|ns.cp */|
|000006d0| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000710| 00 00 11 51 00 02 00 3c | 41 70 70 4d 61 6b 65 72 |...Q...<|AppMaker|
|00000720| 20 43 44 20 23 37 3a 41 | 70 70 4d 61 6b 65 72 20 | CD #7:A|ppMaker |
|00000730| 0a 42 75 74 74 6f 6e 73 | 2e 63 70 6f 02 00 00 00 |.Buttons|.cpo....|
|00000740| 54 45 58 54 4b 41 48 4c | 00 00 63 8c 64 80 00 00 |TEXTKAHL|..c.d...|
|00000750| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 63 8c 64 80 |..TEXTKA|HL..c.d.|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 af 39 12 48 00 00 | 06 51 00 00 01 1e af 22 |...9.H..|.Q....."|
|00000780| 39 09 42 44 00 00 00 00 | 18 67 08 43 6f 6d 6d 61 |9.BD....|.g.Comma|
|00000790| 6e 64 73 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |nds.....|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 18 6a ac 32 |........|.....j.2|
|000007d0| ee 29 54 45 58 54 43 57 | 49 45 00 01 00 01 00 00 |.)TEXTCW|IE......|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 03 54 43 4c 00 00 01 | 00 10 00 00 18 67 00 00 |..TCL...|.....g..|
|00000800| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000810| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+