home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 42 / Amiga Format AFCD42 (Issue 126, Aug 1999).iso / -serious- / programming / basic / newiconsblitz / nibexamples / nib_examplestd.bb2 < prev    next >
Unknown  |  1999-05-14  |  2.0 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 00 3b 20 45 78 61 6d | 70 6c 65 20 6f 66 20 53 |;.; Exam|ple of S|
|00000010| 74 61 6e 64 61 72 64 20 | 69 6d 61 67 65 20 76 69 |tandard |image vi|
|00000020| 65 77 69 6e 67 20 4f 4e | 4c 59 21 20 56 31 2e 30 |ewing ON|LY! V1.0|
|00000030| 30 20 28 32 37 2f 30 34 | 2f 31 39 39 39 29 00 3b |0 (27/04|/1999).;|
|00000040| 20 28 43 29 20 52 6f 62 | 65 72 74 20 48 75 74 63 | (C) Rob|ert Hutc|
|00000050| 68 69 6e 73 6f 6e 20 31 | 39 39 39 21 00 3b 20 53 |hinson 1|999!.; S|
|00000060| 61 74 61 6e 69 63 20 44 | 72 65 61 6d 73 20 53 6f |atanic D|reams So|
|00000070| 66 74 77 61 72 65 20 31 | 39 39 39 21 20 5b 4c 6f |ftware 1|999! [Lo|
|00000080| 6b 69 5e 53 44 5d 00 3b | 00 3b 20 46 65 65 6c 20 |ki^SD].;|.; Feel |
|00000090| 66 72 65 65 20 74 6f 20 | 75 73 65 20 74 68 69 73 |free to |use this|
|000000a0| 20 65 78 61 6d 70 6c 65 | 20 61 6e 79 20 77 61 79 | example| any way|
|000000b0| 20 79 6f 75 20 6c 69 6b | 65 20 3b 29 00 3b 00 3b | you lik|e ;).;.;|
|000000c0| 20 50 6c 65 61 73 65 20 | 65 6d 61 69 6c 20 6d 65 | Please |email me|
|000000d0| 20 77 69 74 68 20 61 6e | 79 20 62 75 67 20 72 65 | with an|y bug re|
|000000e0| 70 6f 72 74 73 20 6f 72 | 20 63 68 61 6e 67 65 73 |ports or| changes|
|000000f0| 20 70 6c 65 61 73 65 3a | 00 3b 00 3b 20 20 20 6c | please:|.;.; l|
|00000100| 6f 6b 69 40 73 64 73 6f | 66 74 2e 66 72 65 65 73 |oki@sdso|ft.frees|
|00000110| 65 72 76 65 2e 63 6f 2e | 75 6b 00 3b 00 3b 20 54 |erve.co.|uk.;.; T|
|00000120| 68 69 73 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 |his can |be used |
|00000130| 61 73 20 61 6e 20 65 78 | 61 6d 70 6c 65 20 6f 66 |as an ex|ample of|
|00000140| 20 66 6f 72 63 69 6e 67 | 20 74 68 65 20 75 73 65 | forcing| the use|
|00000150| 20 6f 66 20 53 74 61 6e | 64 61 72 64 00 3b 20 69 | of Stan|dard.; i|
|00000160| 6d 61 67 65 73 20 65 76 | 65 6e 20 77 68 65 6e 20 |mages ev|en when |
|00000170| 74 68 65 72 65 20 69 73 | 20 62 6f 74 68 20 64 61 |there is| both da|
|00000180| 74 61 20 77 69 74 68 69 | 6e 20 74 68 65 20 69 63 |ta withi|n the ic|
|00000190| 6f 6e 20 6f 62 6a 65 63 | 74 2e 00 3b 00 3b 20 52 |on objec|t..;.; R|
|000001a0| 65 71 75 69 72 65 6d 65 | 6e 74 73 3a 00 3b 00 3b |equireme|nts:.;.;|
|000001b0| 20 20 20 6f 20 4e 65 77 | 49 63 6f 6e 73 42 6c 69 | o New|IconsBli|
|000001c0| 74 7a 20 69 6e 73 74 61 | 6c 6c 65 64 20 63 6f 72 |tz insta|lled cor|
|000001d0| 72 65 63 74 6c 79 20 28 | 73 65 65 20 64 6f 63 73 |rectly (|see docs|
|000001e0| 29 00 3b 20 20 20 6f 20 | 54 68 65 20 4e 49 42 5f |).; o |The NIB_|
|000001f0| 53 69 6e 67 6c 65 5f 49 | 6e 63 6c 75 64 65 2e 42 |Single_I|nclude.B|
|00000200| 42 32 20 69 6e 63 6c 75 | 64 65 20 28 70 72 6f 76 |B2 inclu|de (prov|
|00000210| 69 64 65 64 29 00 3b 20 | 20 20 6f 20 6e 65 77 69 |ided).; | o newi|
|00000220| 63 6f 6e 2e 6c 69 62 72 | 61 72 79 20 28 56 34 30 |con.libr|ary (V40|
|00000230| 20 70 72 65 66 65 72 61 | 62 6c 79 21 29 20 2f 20 | prefera|bly!) / |
|00000240| 69 63 6f 6e 2e 6c 69 62 | 72 61 72 79 20 28 56 33 |icon.lib|rary (V3|
|00000250| 39 2b 29 00 3b 00 00 cf | 02 20 30 00 ff b5 00 00 |9+).;...|. 0.....|
|00000260| 80 12 20 22 2f 4e 49 42 | 49 6e 63 6c 75 64 65 73 |.. "/NIB|Includes|
|00000270| 2f 4e 49 42 5f 49 6e 63 | 6c 75 64 65 2e 42 42 32 |/NIB_Inc|lude.BB2|
|00000280| 22 00 00 20 20 3b 2d 2d | 2d 20 43 68 65 63 6b 20 |".. ;--|- Check |
|00000290| 6f 75 72 20 6c 69 62 72 | 61 72 69 65 73 00 20 20 |our libr|aries. |
|000002a0| 3b 00 20 20 80 0b 20 4e | 49 42 43 68 65 63 6b 4c |;. .. N|IBCheckL|
|000002b0| 69 62 73 7b 7d 3d bc 0f | 00 20 20 20 20 dd 82 20 |ibs{}=..|. .. |
|000002c0| 22 49 6e 63 6f 72 72 65 | 63 74 20 6f 72 20 6e 6f |"Incorre|ct or no|
|000002d0| 6e 2d 70 72 65 73 65 6e | 74 20 6e 65 77 69 63 6f |n-presen|t newico|
|000002e0| 6e 2e 6c 69 62 72 61 72 | 79 2f 69 63 6f 6e 2e 6c |n.librar|y/icon.l|
|000002f0| 69 62 72 61 72 79 21 22 | 00 20 20 20 20 80 02 00 |ibrary!"|. ...|
|00000300| 20 20 80 c0 00 00 20 20 | 3b 2d 2d 2d 20 4c 6f 61 | .... |;--- Loa|
|00000310| 64 20 66 69 6c 65 73 00 | 20 20 3b 00 20 20 80 0b |d files.| ;. ..|
|00000320| 20 4e 49 42 4f 70 65 6e | 49 63 6f 6e 7b 30 2c 22 | NIBOpen|Icon{0,"|
|00000330| 59 41 4d 3a 59 41 4d 22 | 7d 20 20 20 20 20 3d 20 |YAM:YAM"|} = |
|00000340| bc 0f 20 80 21 20 62 61 | 64 69 63 6f 6e 3d 31 00 |.. .! ba|dicon=1.|
|00000350| 20 20 80 0b 20 4e 49 42 | 4f 70 65 6e 49 63 6f 6e | .. NIB|OpenIcon|
|00000360| 7b 31 2c 22 59 41 4d 3a | 43 68 61 6e 67 65 73 22 |{1,"YAM:|Changes"|
|00000370| 7d 20 3d 20 bc 0f 20 80 | 21 20 62 61 64 69 63 6f |} = .. .|! badico|
|00000380| 6e 3d 31 00 20 20 80 0b | 20 62 61 64 69 63 6f 6e |n=1. ..| badicon|
|00000390| 3d 31 00 20 20 20 20 dd | 82 20 22 43 61 6e 74 20 |=1. .|. "Cant |
|000003a0| 6c 6f 61 64 20 66 69 6c | 65 28 73 29 21 22 00 20 |load fil|e(s)!". |
|000003b0| 20 20 20 80 02 00 00 20 | 20 80 c0 00 00 20 20 3b | .... | .... ;|
|000003c0| 2d 2d 2d 20 43 68 65 63 | 6b 20 74 68 65 20 6c 6f |--- Chec|k the lo|
|000003d0| 61 64 65 64 20 64 61 74 | 61 2e 2e 00 20 20 3b 00 |aded dat|a... ;.|
|000003e0| 20 20 69 6d 67 73 30 2e | 62 3d 53 54 44 43 68 65 | imgs0.|b=STDChe|
|000003f0| 63 6b 53 74 72 75 63 74 | 7b 30 7d 00 20 20 69 6d |ckStruct|{0}. im|
|00000400| 67 73 31 2e 62 3d 53 54 | 44 43 68 65 63 6b 53 74 |gs1.b=ST|DCheckSt|
|00000410| 72 75 63 74 7b 31 7d 00 | 20 20 80 0b 20 69 6d 67 |ruct{1}.| .. img|
|00000420| 73 30 3d 30 20 80 8a 20 | 69 6d 67 73 31 3d 30 00 |s0=0 .. |imgs1=0.|
|00000430| 20 20 20 20 4e 49 42 46 | 72 65 65 49 63 6f 6e 7b | NIBF|reeIcon{|
|00000440| 30 7d 00 20 20 20 20 4e | 49 42 46 72 65 65 49 63 |0}. N|IBFreeIc|
|00000450| 6f 6e 7b 31 7d 00 20 20 | 20 20 dd 82 20 22 4e 6f |on{1}. | .. "No|
|00000460| 20 53 74 61 6e 64 61 72 | 64 20 64 61 74 61 21 22 | Standar|d data!"|
|00000470| 00 20 20 20 20 80 02 00 | 20 20 80 c0 00 00 20 20 |. ...| .... |
|00000480| 3b 2d 2d 2d 20 52 65 6d | 61 70 20 74 68 65 20 63 |;--- Rem|ap the c|
|00000490| 68 75 6e 6b 79 20 64 61 | 74 61 20 74 6f 20 74 68 |hunky da|ta to th|
|000004a0| 65 20 69 6d 61 67 65 73 | 2e 2e 2e 00 20 20 3b 00 |e images|.... ;.|
|000004b0| 20 20 53 54 44 54 6f 49 | 6d 61 67 65 73 7b 30 7d | STDToI|mages{0}|
|000004c0| 00 20 20 53 54 44 54 6f | 49 6d 61 67 65 73 7b 31 |. STDTo|Images{1|
|000004d0| 7d 00 00 20 20 3b 2d 2d | 2d 20 46 69 6e 64 20 74 |}.. ;--|- Find t|
|000004e0| 68 65 20 6c 61 72 67 65 | 73 74 20 68 65 69 67 68 |he large|st heigh|
|000004f0| 74 2e 2e 2e 00 20 20 3b | 00 20 20 44 65 66 48 65 |t.... ;|. DefHe|
|00000500| 69 67 68 74 31 2e 77 3d | 53 54 44 46 69 6e 64 48 |ight1.w=|STDFindH|
|00000510| 65 69 67 68 74 7b 30 7d | 00 20 20 44 65 66 48 65 |eight{0}|. DefHe|
|00000520| 69 67 68 74 32 2e 77 3d | 53 54 44 46 69 6e 64 48 |ight2.w=|STDFindH|
|00000530| 65 69 67 68 74 7b 31 7d | 00 20 20 80 0b 20 44 65 |eight{1}|. .. De|
|00000540| 66 48 65 69 67 68 74 31 | 3e 44 65 66 48 65 69 67 |fHeight1|>DefHeig|
|00000550| 68 74 32 00 20 20 20 20 | 4e 65 77 44 65 66 3d 44 |ht2. |NewDef=D|
|00000560| 65 66 48 65 69 67 68 74 | 31 00 20 20 80 22 00 20 |efHeight|1. .". |
|00000570| 20 20 20 4e 65 77 44 65 | 66 3d 44 65 66 48 65 69 | NewDe|f=DefHei|
|00000580| 67 68 74 32 00 20 20 80 | c0 00 00 20 20 3b 2d 2d |ght2. .|... ;--|
|00000590| 2d 20 46 69 6e 64 20 74 | 68 65 20 77 69 64 74 68 |- Find t|he width|
|000005a0| 73 2e 2e 2e 2e 00 20 20 | 3b 00 20 20 44 65 66 57 |s..... |;. DefW|
|000005b0| 69 64 74 68 31 2e 77 3d | 53 54 44 46 69 6e 64 57 |idth1.w=|STDFindW|
|000005c0| 69 64 74 68 7b 30 7d 00 | 20 20 44 65 66 57 69 64 |idth{0}.| DefWid|
|000005d0| 74 68 32 2e 77 3d 53 54 | 44 46 69 6e 64 57 69 64 |th2.w=ST|DFindWid|
|000005e0| 74 68 7b 31 7d 00 00 20 | 20 3b 2d 2d 2d 20 4f 75 |th{1}.. | ;--- Ou|
|000005f0| 72 20 77 69 6e 64 6f 77 | 2e 2e 2e 2e 00 20 20 3b |r window|..... ;|
|00000600| 00 20 20 c5 01 20 30 2c | 35 30 2c 35 30 2c 28 28 |. .. 0,|50,50,((|
|00000610| 44 65 66 57 69 64 74 68 | 31 2b 44 65 66 57 69 64 |DefWidth|1+DefWid|
|00000620| 74 68 32 29 2b 31 33 29 | 2c 28 4e 65 77 44 65 66 |th2)+13)|,(NewDef|
|00000630| 2a 32 29 2b 31 33 2c 24 | 31 30 30 30 2c 22 22 2c |*2)+13,$|1000,"",|
|00000640| 30 2c 31 00 20 20 d2 02 | 00 00 20 20 3b 2d 2d 2d |0,1. ..|.. ;---|
|00000650| 20 44 72 61 77 20 6f 75 | 72 20 69 6d 61 67 65 73 | Draw ou|r images|
|00000660| 2e 2e 2e 00 20 20 3b 20 | 20 20 20 42 79 20 74 68 |.... ; | By th|
|00000670| 69 73 20 70 6f 69 6e 74 | 20 77 65 20 4b 4e 4f 57 |is point| we KNOW|
|00000680| 20 77 65 20 68 61 76 65 | 20 74 68 65 20 64 61 74 | we have| the dat|
|00000690| 61 20 74 6f 20 64 72 61 | 77 2c 20 73 6f 20 6e 6f |a to dra|w, so no|
|000006a0| 20 65 72 72 6f 72 00 20 | 20 3b 20 20 20 20 63 68 | error. | ; ch|
|000006b0| 65 63 6b 20 72 65 71 75 | 69 72 65 64 2e 00 20 20 |eck requ|ired.. |
|000006c0| 3b 00 20 20 73 75 63 63 | 2e 62 3d 53 54 44 44 72 |;. succ|.b=STDDr|
|000006d0| 61 77 49 6d 61 67 65 7b | 30 2c 23 4e 49 42 5f 4e |awImage{|0,#NIB_N|
|000006e0| 4f 52 4d 41 4c 20 20 2c | 30 2c 35 2c 35 7d 00 20 |ORMAL ,|0,5,5}. |
|000006f0| 20 73 75 63 63 2e 62 3d | 53 54 44 44 72 61 77 49 | succ.b=|STDDrawI|
|00000700| 6d 61 67 65 7b 30 2c 23 | 4e 49 42 5f 53 45 4c 45 |mage{0,#|NIB_SELE|
|00000710| 43 54 45 44 2c 30 2c 35 | 2c 4e 65 77 44 65 66 2b |CTED,0,5|,NewDef+|
|00000720| 38 7d 00 20 20 73 75 63 | 63 2e 62 3d 53 54 44 44 |8}. suc|c.b=STDD|
|00000730| 72 61 77 49 6d 61 67 65 | 7b 31 2c 23 4e 49 42 5f |rawImage|{1,#NIB_|
|00000740| 4e 4f 52 4d 41 4c 20 20 | 2c 30 2c 44 65 66 57 69 |NORMAL |,0,DefWi|
|00000750| 64 74 68 31 2b 38 2c 35 | 7d 00 20 20 73 75 63 63 |dth1+8,5|}. succ|
|00000760| 2e 62 3d 53 54 44 44 72 | 61 77 49 6d 61 67 65 7b |.b=STDDr|awImage{|
|00000770| 31 2c 23 4e 49 42 5f 53 | 45 4c 45 43 54 45 44 2c |1,#NIB_S|ELECTED,|
|00000780| 30 2c 44 65 66 57 69 64 | 74 68 31 2b 38 2c 4e 65 |0,DefWid|th1+8,Ne|
|00000790| 77 44 65 66 2b 38 7d 00 | 00 20 20 3b 2d 2d 2d 20 |wDef+8}.|. ;--- |
|000007a0| 57 61 69 74 20 66 6f 72 | 20 74 68 65 20 6d 6f 75 |Wait for| the mou|
|000007b0| 73 65 20 62 75 74 74 6f | 6e 20 68 69 74 00 20 20 |se butto|n hit. |
|000007c0| 3b 00 20 20 80 0a 00 00 | 20 20 3b 2d 2d 2d 20 46 |;. ....| ;--- F|
|000007d0| 72 65 65 20 74 68 65 20 | 69 63 6f 6e 73 2e 2e 2e |ree the |icons...|
|000007e0| 00 20 20 3b 00 20 20 4e | 49 42 46 72 65 65 49 63 |. ;. N|IBFreeIc|
|000007f0| 6f 6e 7b 30 7d 00 20 20 | 4e 49 42 46 72 65 65 49 |on{0}. |NIBFreeI|
|00000800| 63 6f 6e 7b 31 7d 00 00 | 20 20 3b 2d 2d 2d 20 46 |con{1}..| ;--- F|
|00000810| 72 65 65 20 74 68 65 20 | 77 69 6e 64 6f 77 2e 2e |ree the |window..|
|00000820| 00 20 20 3b 00 20 20 c5 | 3c 20 30 00 00 80 02 00 |. ;. .|< 0.....|
|00000830| 00 00 00 | |... | |
+--------+-------------------------+-------------------------+--------+--------+