Home » Archimedes archive » Acorn User » AU 1994-08.adf » !WimpTools_WimpTools » !WimpTools/CWimpTools

!WimpTools/CWimpTools

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1994-08.adf » !WimpTools_WimpTools
Filename: !WimpTools/CWimpTools
Read OK:
File size: 0984 bytes
Load address: 0000
Exec address: 0000
File contents
/* Suitable header file to enable you to use the WimpTools */
/* SWIs from within C                                      */

#ifndef cwimptools_h
#define cwimptools_h

#define WSWimpTools_Version            0x47c80
#define WSWimpTools_TaskIcon           0x47c81
#define WSWimpTools_PopOpenWindow      0x47c82
#define WSWimpTools_OpenPaneWindow     0x47c83
#define WSWimpTools_PopOpenPaneWindow  0x47c84
#define WSWimpTools_CloseWindow        0x47c85
#define WSWimpTools_ToggleIcon         0x47c86
#define WSWimpTools_SetIconSelect      0x47c87
#define WSWimpTools_GetIconSelectState 0x47c88
#define WSWimpTools_SetIconEnable      0x47c89
#define WSWimpTools_GetIconEnableState 0x47c8a
#define WSWimpTools_SetIconText        0x47c8b
#define WSWimpTools_GetIconText        0x47c8c
#define WSWimpTools_SetIconValidation  0x47c8d
#define WSWimpTools_GetIconValidation  0x47c8e
#define WSWimpTools_SetWindowTitle     0x47c8f
#define WSWimpTools_GetWindowTitle     0x47c90
#define WSWimpTools_UpdateWindow       0x47c91
#define WSWimpTools_MakeMenuHeader     0x47c92
#define WSWimpTools_MakeMenuItem       0x47c93
#define WSWimpTools_SetMenuItemText    0x47c94
#define WSWimpTools_GetMenuItemText    0x47c95
#define WSWimpTools_MakeMenuItemLast   0x47c96
#define WSWimpTools_SetMenuItemTick    0x47c97
#define WSWimpTools_GetMenuItemTick    0x47c98
#define WSWimpTools_SetMenuItemMessage 0x47c99
#define WSWimpTools_GetMenuItemMessage 0x47c9a
#define WSWimpTools_SetMenuItemEnable  0x47c9b
#define WSWimpTools_GetMenuItemEnable  0x47c9c
#define WSWimpTools_SetMenuItemOptions 0x47c9d
#define WSWimpTools_GetMenuItemOptions 0x47c9e
#define WSWimpTools_AttachSubMenu      0x47c9f
#define WSWimpTools_IconBarMenu        0x47ca1
#define WSWimpTools_MenuAdjust         0x47ca2
#define WSWimpTools_MakeMenu           0x47ca3
#define WSWimpTools_GetText            0x47ca4
#define WSWimpTools_StartDrag          0x47ca5
#define WSWimpTools_SendSave           0x47ca6
#define WSWimpTools_SendLoad           0x47ca7
#define WSWimpTools_SendSaveAck        0x47ca8
#define WSWimpTools_SendLoadAck        0x47ca9
#define WSWimpTools_LoadTemplates      0x47caa
#define WSWimpTools_WindowConvertParameter 0x47cab
#define WSWimpTools_LoseTemplateFonts  0x47cac
#define WSWimpTools_Register           0x47cad
#define WSWimpTools_DeRegister         0x47cae
#define WSWimpTools_LoadSprites        0x47caf
#define WSWimpTools_GetLeaf            0x47cb0

#endif
00000000  2f 2a 20 53 75 69 74 61  62 6c 65 20 68 65 61 64  |/* Suitable head|
00000010  65 72 20 66 69 6c 65 20  74 6f 20 65 6e 61 62 6c  |er file to enabl|
00000020  65 20 79 6f 75 20 74 6f  20 75 73 65 20 74 68 65  |e you to use the|
00000030  20 57 69 6d 70 54 6f 6f  6c 73 20 2a 2f 0a 2f 2a  | WimpTools */./*|
00000040  20 53 57 49 73 20 66 72  6f 6d 20 77 69 74 68 69  | SWIs from withi|
00000050  6e 20 43 20 20 20 20 20  20 20 20 20 20 20 20 20  |n C             |
00000060  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000070  20 20 20 20 20 20 20 20  20 2a 2f 0a 0a 23 69 66  |         */..#if|
00000080  6e 64 65 66 20 63 77 69  6d 70 74 6f 6f 6c 73 5f  |ndef cwimptools_|
00000090  68 0a 23 64 65 66 69 6e  65 20 63 77 69 6d 70 74  |h.#define cwimpt|
000000a0  6f 6f 6c 73 5f 68 0a 0a  23 64 65 66 69 6e 65 20  |ools_h..#define |
000000b0  57 53 57 69 6d 70 54 6f  6f 6c 73 5f 56 65 72 73  |WSWimpTools_Vers|
000000c0  69 6f 6e 20 20 20 20 20  20 20 20 20 20 20 20 30  |ion            0|
000000d0  78 34 37 63 38 30 0a 23  64 65 66 69 6e 65 20 57  |x47c80.#define W|
000000e0  53 57 69 6d 70 54 6f 6f  6c 73 5f 54 61 73 6b 49  |SWimpTools_TaskI|
000000f0  63 6f 6e 20 20 20 20 20  20 20 20 20 20 20 30 78  |con           0x|
00000100  34 37 63 38 31 0a 23 64  65 66 69 6e 65 20 57 53  |47c81.#define WS|
00000110  57 69 6d 70 54 6f 6f 6c  73 5f 50 6f 70 4f 70 65  |WimpTools_PopOpe|
00000120  6e 57 69 6e 64 6f 77 20  20 20 20 20 20 30 78 34  |nWindow      0x4|
00000130  37 63 38 32 0a 23 64 65  66 69 6e 65 20 57 53 57  |7c82.#define WSW|
00000140  69 6d 70 54 6f 6f 6c 73  5f 4f 70 65 6e 50 61 6e  |impTools_OpenPan|
00000150  65 57 69 6e 64 6f 77 20  20 20 20 20 30 78 34 37  |eWindow     0x47|
00000160  63 38 33 0a 23 64 65 66  69 6e 65 20 57 53 57 69  |c83.#define WSWi|
00000170  6d 70 54 6f 6f 6c 73 5f  50 6f 70 4f 70 65 6e 50  |mpTools_PopOpenP|
00000180  61 6e 65 57 69 6e 64 6f  77 20 20 30 78 34 37 63  |aneWindow  0x47c|
00000190  38 34 0a 23 64 65 66 69  6e 65 20 57 53 57 69 6d  |84.#define WSWim|
000001a0  70 54 6f 6f 6c 73 5f 43  6c 6f 73 65 57 69 6e 64  |pTools_CloseWind|
000001b0  6f 77 20 20 20 20 20 20  20 20 30 78 34 37 63 38  |ow        0x47c8|
000001c0  35 0a 23 64 65 66 69 6e  65 20 57 53 57 69 6d 70  |5.#define WSWimp|
000001d0  54 6f 6f 6c 73 5f 54 6f  67 67 6c 65 49 63 6f 6e  |Tools_ToggleIcon|
000001e0  20 20 20 20 20 20 20 20  20 30 78 34 37 63 38 36  |         0x47c86|
000001f0  0a 23 64 65 66 69 6e 65  20 57 53 57 69 6d 70 54  |.#define WSWimpT|
00000200  6f 6f 6c 73 5f 53 65 74  49 63 6f 6e 53 65 6c 65  |ools_SetIconSele|
00000210  63 74 20 20 20 20 20 20  30 78 34 37 63 38 37 0a  |ct      0x47c87.|
00000220  23 64 65 66 69 6e 65 20  57 53 57 69 6d 70 54 6f  |#define WSWimpTo|
00000230  6f 6c 73 5f 47 65 74 49  63 6f 6e 53 65 6c 65 63  |ols_GetIconSelec|
00000240  74 53 74 61 74 65 20 30  78 34 37 63 38 38 0a 23  |tState 0x47c88.#|
00000250  64 65 66 69 6e 65 20 57  53 57 69 6d 70 54 6f 6f  |define WSWimpToo|
00000260  6c 73 5f 53 65 74 49 63  6f 6e 45 6e 61 62 6c 65  |ls_SetIconEnable|
00000270  20 20 20 20 20 20 30 78  34 37 63 38 39 0a 23 64  |      0x47c89.#d|
00000280  65 66 69 6e 65 20 57 53  57 69 6d 70 54 6f 6f 6c  |efine WSWimpTool|
00000290  73 5f 47 65 74 49 63 6f  6e 45 6e 61 62 6c 65 53  |s_GetIconEnableS|
000002a0  74 61 74 65 20 30 78 34  37 63 38 61 0a 23 64 65  |tate 0x47c8a.#de|
000002b0  66 69 6e 65 20 57 53 57  69 6d 70 54 6f 6f 6c 73  |fine WSWimpTools|
000002c0  5f 53 65 74 49 63 6f 6e  54 65 78 74 20 20 20 20  |_SetIconText    |
000002d0  20 20 20 20 30 78 34 37  63 38 62 0a 23 64 65 66  |    0x47c8b.#def|
000002e0  69 6e 65 20 57 53 57 69  6d 70 54 6f 6f 6c 73 5f  |ine WSWimpTools_|
000002f0  47 65 74 49 63 6f 6e 54  65 78 74 20 20 20 20 20  |GetIconText     |
00000300  20 20 20 30 78 34 37 63  38 63 0a 23 64 65 66 69  |   0x47c8c.#defi|
00000310  6e 65 20 57 53 57 69 6d  70 54 6f 6f 6c 73 5f 53  |ne WSWimpTools_S|
00000320  65 74 49 63 6f 6e 56 61  6c 69 64 61 74 69 6f 6e  |etIconValidation|
00000330  20 20 30 78 34 37 63 38  64 0a 23 64 65 66 69 6e  |  0x47c8d.#defin|
00000340  65 20 57 53 57 69 6d 70  54 6f 6f 6c 73 5f 47 65  |e WSWimpTools_Ge|
00000350  74 49 63 6f 6e 56 61 6c  69 64 61 74 69 6f 6e 20  |tIconValidation |
00000360  20 30 78 34 37 63 38 65  0a 23 64 65 66 69 6e 65  | 0x47c8e.#define|
00000370  20 57 53 57 69 6d 70 54  6f 6f 6c 73 5f 53 65 74  | WSWimpTools_Set|
00000380  57 69 6e 64 6f 77 54 69  74 6c 65 20 20 20 20 20  |WindowTitle     |
00000390  30 78 34 37 63 38 66 0a  23 64 65 66 69 6e 65 20  |0x47c8f.#define |
000003a0  57 53 57 69 6d 70 54 6f  6f 6c 73 5f 47 65 74 57  |WSWimpTools_GetW|
000003b0  69 6e 64 6f 77 54 69 74  6c 65 20 20 20 20 20 30  |indowTitle     0|
000003c0  78 34 37 63 39 30 0a 23  64 65 66 69 6e 65 20 57  |x47c90.#define W|
000003d0  53 57 69 6d 70 54 6f 6f  6c 73 5f 55 70 64 61 74  |SWimpTools_Updat|
000003e0  65 57 69 6e 64 6f 77 20  20 20 20 20 20 20 30 78  |eWindow       0x|
000003f0  34 37 63 39 31 0a 23 64  65 66 69 6e 65 20 57 53  |47c91.#define WS|
00000400  57 69 6d 70 54 6f 6f 6c  73 5f 4d 61 6b 65 4d 65  |WimpTools_MakeMe|
00000410  6e 75 48 65 61 64 65 72  20 20 20 20 20 30 78 34  |nuHeader     0x4|
00000420  37 63 39 32 0a 23 64 65  66 69 6e 65 20 57 53 57  |7c92.#define WSW|
00000430  69 6d 70 54 6f 6f 6c 73  5f 4d 61 6b 65 4d 65 6e  |impTools_MakeMen|
00000440  75 49 74 65 6d 20 20 20  20 20 20 20 30 78 34 37  |uItem       0x47|
00000450  63 39 33 0a 23 64 65 66  69 6e 65 20 57 53 57 69  |c93.#define WSWi|
00000460  6d 70 54 6f 6f 6c 73 5f  53 65 74 4d 65 6e 75 49  |mpTools_SetMenuI|
00000470  74 65 6d 54 65 78 74 20  20 20 20 30 78 34 37 63  |temText    0x47c|
00000480  39 34 0a 23 64 65 66 69  6e 65 20 57 53 57 69 6d  |94.#define WSWim|
00000490  70 54 6f 6f 6c 73 5f 47  65 74 4d 65 6e 75 49 74  |pTools_GetMenuIt|
000004a0  65 6d 54 65 78 74 20 20  20 20 30 78 34 37 63 39  |emText    0x47c9|
000004b0  35 0a 23 64 65 66 69 6e  65 20 57 53 57 69 6d 70  |5.#define WSWimp|
000004c0  54 6f 6f 6c 73 5f 4d 61  6b 65 4d 65 6e 75 49 74  |Tools_MakeMenuIt|
000004d0  65 6d 4c 61 73 74 20 20  20 30 78 34 37 63 39 36  |emLast   0x47c96|
000004e0  0a 23 64 65 66 69 6e 65  20 57 53 57 69 6d 70 54  |.#define WSWimpT|
000004f0  6f 6f 6c 73 5f 53 65 74  4d 65 6e 75 49 74 65 6d  |ools_SetMenuItem|
00000500  54 69 63 6b 20 20 20 20  30 78 34 37 63 39 37 0a  |Tick    0x47c97.|
00000510  23 64 65 66 69 6e 65 20  57 53 57 69 6d 70 54 6f  |#define WSWimpTo|
00000520  6f 6c 73 5f 47 65 74 4d  65 6e 75 49 74 65 6d 54  |ols_GetMenuItemT|
00000530  69 63 6b 20 20 20 20 30  78 34 37 63 39 38 0a 23  |ick    0x47c98.#|
00000540  64 65 66 69 6e 65 20 57  53 57 69 6d 70 54 6f 6f  |define WSWimpToo|
00000550  6c 73 5f 53 65 74 4d 65  6e 75 49 74 65 6d 4d 65  |ls_SetMenuItemMe|
00000560  73 73 61 67 65 20 30 78  34 37 63 39 39 0a 23 64  |ssage 0x47c99.#d|
00000570  65 66 69 6e 65 20 57 53  57 69 6d 70 54 6f 6f 6c  |efine WSWimpTool|
00000580  73 5f 47 65 74 4d 65 6e  75 49 74 65 6d 4d 65 73  |s_GetMenuItemMes|
00000590  73 61 67 65 20 30 78 34  37 63 39 61 0a 23 64 65  |sage 0x47c9a.#de|
000005a0  66 69 6e 65 20 57 53 57  69 6d 70 54 6f 6f 6c 73  |fine WSWimpTools|
000005b0  5f 53 65 74 4d 65 6e 75  49 74 65 6d 45 6e 61 62  |_SetMenuItemEnab|
000005c0  6c 65 20 20 30 78 34 37  63 39 62 0a 23 64 65 66  |le  0x47c9b.#def|
000005d0  69 6e 65 20 57 53 57 69  6d 70 54 6f 6f 6c 73 5f  |ine WSWimpTools_|
000005e0  47 65 74 4d 65 6e 75 49  74 65 6d 45 6e 61 62 6c  |GetMenuItemEnabl|
000005f0  65 20 20 30 78 34 37 63  39 63 0a 23 64 65 66 69  |e  0x47c9c.#defi|
00000600  6e 65 20 57 53 57 69 6d  70 54 6f 6f 6c 73 5f 53  |ne WSWimpTools_S|
00000610  65 74 4d 65 6e 75 49 74  65 6d 4f 70 74 69 6f 6e  |etMenuItemOption|
00000620  73 20 30 78 34 37 63 39  64 0a 23 64 65 66 69 6e  |s 0x47c9d.#defin|
00000630  65 20 57 53 57 69 6d 70  54 6f 6f 6c 73 5f 47 65  |e WSWimpTools_Ge|
00000640  74 4d 65 6e 75 49 74 65  6d 4f 70 74 69 6f 6e 73  |tMenuItemOptions|
00000650  20 30 78 34 37 63 39 65  0a 23 64 65 66 69 6e 65  | 0x47c9e.#define|
00000660  20 57 53 57 69 6d 70 54  6f 6f 6c 73 5f 41 74 74  | WSWimpTools_Att|
00000670  61 63 68 53 75 62 4d 65  6e 75 20 20 20 20 20 20  |achSubMenu      |
00000680  30 78 34 37 63 39 66 0a  23 64 65 66 69 6e 65 20  |0x47c9f.#define |
00000690  57 53 57 69 6d 70 54 6f  6f 6c 73 5f 49 63 6f 6e  |WSWimpTools_Icon|
000006a0  42 61 72 4d 65 6e 75 20  20 20 20 20 20 20 20 30  |BarMenu        0|
000006b0  78 34 37 63 61 31 0a 23  64 65 66 69 6e 65 20 57  |x47ca1.#define W|
000006c0  53 57 69 6d 70 54 6f 6f  6c 73 5f 4d 65 6e 75 41  |SWimpTools_MenuA|
000006d0  64 6a 75 73 74 20 20 20  20 20 20 20 20 20 30 78  |djust         0x|
000006e0  34 37 63 61 32 0a 23 64  65 66 69 6e 65 20 57 53  |47ca2.#define WS|
000006f0  57 69 6d 70 54 6f 6f 6c  73 5f 4d 61 6b 65 4d 65  |WimpTools_MakeMe|
00000700  6e 75 20 20 20 20 20 20  20 20 20 20 20 30 78 34  |nu           0x4|
00000710  37 63 61 33 0a 23 64 65  66 69 6e 65 20 57 53 57  |7ca3.#define WSW|
00000720  69 6d 70 54 6f 6f 6c 73  5f 47 65 74 54 65 78 74  |impTools_GetText|
00000730  20 20 20 20 20 20 20 20  20 20 20 20 30 78 34 37  |            0x47|
00000740  63 61 34 0a 23 64 65 66  69 6e 65 20 57 53 57 69  |ca4.#define WSWi|
00000750  6d 70 54 6f 6f 6c 73 5f  53 74 61 72 74 44 72 61  |mpTools_StartDra|
00000760  67 20 20 20 20 20 20 20  20 20 20 30 78 34 37 63  |g          0x47c|
00000770  61 35 0a 23 64 65 66 69  6e 65 20 57 53 57 69 6d  |a5.#define WSWim|
00000780  70 54 6f 6f 6c 73 5f 53  65 6e 64 53 61 76 65 20  |pTools_SendSave |
00000790  20 20 20 20 20 20 20 20  20 20 30 78 34 37 63 61  |          0x47ca|
000007a0  36 0a 23 64 65 66 69 6e  65 20 57 53 57 69 6d 70  |6.#define WSWimp|
000007b0  54 6f 6f 6c 73 5f 53 65  6e 64 4c 6f 61 64 20 20  |Tools_SendLoad  |
000007c0  20 20 20 20 20 20 20 20  20 30 78 34 37 63 61 37  |         0x47ca7|
000007d0  0a 23 64 65 66 69 6e 65  20 57 53 57 69 6d 70 54  |.#define WSWimpT|
000007e0  6f 6f 6c 73 5f 53 65 6e  64 53 61 76 65 41 63 6b  |ools_SendSaveAck|
000007f0  20 20 20 20 20 20 20 20  30 78 34 37 63 61 38 0a  |        0x47ca8.|
00000800  23 64 65 66 69 6e 65 20  57 53 57 69 6d 70 54 6f  |#define WSWimpTo|
00000810  6f 6c 73 5f 53 65 6e 64  4c 6f 61 64 41 63 6b 20  |ols_SendLoadAck |
00000820  20 20 20 20 20 20 20 30  78 34 37 63 61 39 0a 23  |       0x47ca9.#|
00000830  64 65 66 69 6e 65 20 57  53 57 69 6d 70 54 6f 6f  |define WSWimpToo|
00000840  6c 73 5f 4c 6f 61 64 54  65 6d 70 6c 61 74 65 73  |ls_LoadTemplates|
00000850  20 20 20 20 20 20 30 78  34 37 63 61 61 0a 23 64  |      0x47caa.#d|
00000860  65 66 69 6e 65 20 57 53  57 69 6d 70 54 6f 6f 6c  |efine WSWimpTool|
00000870  73 5f 57 69 6e 64 6f 77  43 6f 6e 76 65 72 74 50  |s_WindowConvertP|
00000880  61 72 61 6d 65 74 65 72  20 30 78 34 37 63 61 62  |arameter 0x47cab|
00000890  0a 23 64 65 66 69 6e 65  20 57 53 57 69 6d 70 54  |.#define WSWimpT|
000008a0  6f 6f 6c 73 5f 4c 6f 73  65 54 65 6d 70 6c 61 74  |ools_LoseTemplat|
000008b0  65 46 6f 6e 74 73 20 20  30 78 34 37 63 61 63 0a  |eFonts  0x47cac.|
000008c0  23 64 65 66 69 6e 65 20  57 53 57 69 6d 70 54 6f  |#define WSWimpTo|
000008d0  6f 6c 73 5f 52 65 67 69  73 74 65 72 20 20 20 20  |ols_Register    |
000008e0  20 20 20 20 20 20 20 30  78 34 37 63 61 64 0a 23  |       0x47cad.#|
000008f0  64 65 66 69 6e 65 20 57  53 57 69 6d 70 54 6f 6f  |define WSWimpToo|
00000900  6c 73 5f 44 65 52 65 67  69 73 74 65 72 20 20 20  |ls_DeRegister   |
00000910  20 20 20 20 20 20 30 78  34 37 63 61 65 0a 23 64  |      0x47cae.#d|
00000920  65 66 69 6e 65 20 57 53  57 69 6d 70 54 6f 6f 6c  |efine WSWimpTool|
00000930  73 5f 4c 6f 61 64 53 70  72 69 74 65 73 20 20 20  |s_LoadSprites   |
00000940  20 20 20 20 20 30 78 34  37 63 61 66 0a 23 64 65  |     0x47caf.#de|
00000950  66 69 6e 65 20 57 53 57  69 6d 70 54 6f 6f 6c 73  |fine WSWimpTools|
00000960  5f 47 65 74 4c 65 61 66  20 20 20 20 20 20 20 20  |_GetLeaf        |
00000970  20 20 20 20 30 78 34 37  63 62 30 0a 0a 23 65 6e  |    0x47cb0..#en|
00000980  64 69 66 0a                                       |dif.|
00000984