Home » Archimedes archive » Acorn User » AU 1998-10.adf » Features » DesktopPD/WimpBar2/!WimpBar2/Example

DesktopPD/WimpBar2/!WimpBar2/Example

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 1998-10.adf » Features
Filename: DesktopPD/WimpBar2/!WimpBar2/Example
Read OK:
File size: 08C8 bytes
Load address: 0000
Exec address: 0000
File contents
|
| Example WimpBar 2 Choices file
|
| � 1998 by Technium 220.
|


| Show Filer_Action status.
|
#FILER

| Adjust-click on status shows time for GMT plus 4 hours.
|
#TIMEZONE +4

| Sprites on the left.
|
#LEFT


| Add any apps you want booted here...
| For example:
|
| #BOOT
|   ADFS::Technium.$.DTP.!Printers
|   ADFS::Technium.$.Utilities.Editors.!Zap
|   ADFS::Technium.$.Utilities.Editors.!TemplEd
|   ADFS::Technium.$.Utilities.Misc.!StrongHelp


| Set up some drag commands...
|
| Dragging a sprite file to the bar will load it, by-passing AddSprites.
|
#DRAG_acs
  ff9
 +AddSprite %0

| Dragging a zip-file will attempt to unzip it into it's parent directory.
|
#DRAG_acs
  ddc
 +UnzipIt %*1

| Dragging a directory or application to the bar will open it's filer window.
|
#DRAG_acs
  1000,2000
  Filer_OpenDir %0

| Shift-dragging an object to the bar sets the CSD to it's parent directory.
|
#DRAG_acS
  2000,1000,-1
  Dir %2

| Alt-dragging an Absolute file to the bar will attempt to unsqueeze it.
| (Requires the 'Unsqueeze' utility in your library directory)
|
#DRAG_Acs
  ff8
  Unsqueeze %0 %2.~%1

| Ctrl-dragging to the bar will attempt to produce a Zipfile of that object.
| (Requires the 'Zip' executable)
|
#DRAG_aCs
  2000,1000,-1
 +ZipIt %*1



| Now create some buttons...
|
| Note on menu flags:
|
|   ! - item is an application
|   d - item is a directory (and will be expanded when selected)
|   b - boot this application
|   i - just take it's sprite
|   s - display a sprite
|   _ - item has a separator
|

#MENU
Apps

Zap [!]
  ADFS::Technium.$.Utilities.Editors.!Zap
Printers [!]
  ADFS::Technium.$.DTP.!Printers
StrongHelp [!_]
  ADFS::Technium.$.Utilities.!StrongHlp
Draw [!s]
  Resources:Apps.!Draw
Paint [!s]
  Resources:Apps.!Paint
Alarm [!s]
  Resources:Apps.!Alarm
Chars [!s]
  Resources:Apps.!Chars


#MENU
Open Dir

DTP [d]
  $.DTP
Comms [d]
  $.Comms
Downloads_ [d]
  <Downloads$Dir>
CSD
  @
Library [d]
  <Boot$Dir>.Library
Choices [d]
  <Boot$Dir>.Choices
Resources [d]
  <BootResources$Dir>


| Sprites on the right, this time
|
#RIGHT


| A menu with a few macros...
|
#MENU
Misc

Show Time
 +Time
Show Date_
 +Date
ReSound [s] sm!alarm
 +ReSound
ReFiler [s_] small_dir
 +ReFiler
Kill Toolbox
 +KillTBox
00000000  7c 0a 7c 20 45 78 61 6d  70 6c 65 20 57 69 6d 70  ||.| Example Wimp|
00000010  42 61 72 20 32 20 43 68  6f 69 63 65 73 20 66 69  |Bar 2 Choices fi|
00000020  6c 65 0a 7c 0a 7c 20 a9  20 31 39 39 38 20 62 79  |le.|.| . 1998 by|
00000030  20 54 65 63 68 6e 69 75  6d 20 32 32 30 2e 0a 7c  | Technium 220..||
00000040  0a 0a 0a 7c 20 53 68 6f  77 20 46 69 6c 65 72 5f  |...| Show Filer_|
00000050  41 63 74 69 6f 6e 20 73  74 61 74 75 73 2e 0a 7c  |Action status..||
00000060  0a 23 46 49 4c 45 52 0a  0a 7c 20 41 64 6a 75 73  |.#FILER..| Adjus|
00000070  74 2d 63 6c 69 63 6b 20  6f 6e 20 73 74 61 74 75  |t-click on statu|
00000080  73 20 73 68 6f 77 73 20  74 69 6d 65 20 66 6f 72  |s shows time for|
00000090  20 47 4d 54 20 70 6c 75  73 20 34 20 68 6f 75 72  | GMT plus 4 hour|
000000a0  73 2e 0a 7c 0a 23 54 49  4d 45 5a 4f 4e 45 20 2b  |s..|.#TIMEZONE +|
000000b0  34 0a 0a 7c 20 53 70 72  69 74 65 73 20 6f 6e 20  |4..| Sprites on |
000000c0  74 68 65 20 6c 65 66 74  2e 0a 7c 0a 23 4c 45 46  |the left..|.#LEF|
000000d0  54 0a 0a 0a 7c 20 41 64  64 20 61 6e 79 20 61 70  |T...| Add any ap|
000000e0  70 73 20 79 6f 75 20 77  61 6e 74 20 62 6f 6f 74  |ps you want boot|
000000f0  65 64 20 68 65 72 65 2e  2e 2e 0a 7c 20 46 6f 72  |ed here....| For|
00000100  20 65 78 61 6d 70 6c 65  3a 0a 7c 0a 7c 20 23 42  | example:.|.| #B|
00000110  4f 4f 54 0a 7c 20 20 20  41 44 46 53 3a 3a 54 65  |OOT.|   ADFS::Te|
00000120  63 68 6e 69 75 6d 2e 24  2e 44 54 50 2e 21 50 72  |chnium.$.DTP.!Pr|
00000130  69 6e 74 65 72 73 0a 7c  20 20 20 41 44 46 53 3a  |inters.|   ADFS:|
00000140  3a 54 65 63 68 6e 69 75  6d 2e 24 2e 55 74 69 6c  |:Technium.$.Util|
00000150  69 74 69 65 73 2e 45 64  69 74 6f 72 73 2e 21 5a  |ities.Editors.!Z|
00000160  61 70 0a 7c 20 20 20 41  44 46 53 3a 3a 54 65 63  |ap.|   ADFS::Tec|
00000170  68 6e 69 75 6d 2e 24 2e  55 74 69 6c 69 74 69 65  |hnium.$.Utilitie|
00000180  73 2e 45 64 69 74 6f 72  73 2e 21 54 65 6d 70 6c  |s.Editors.!Templ|
00000190  45 64 0a 7c 20 20 20 41  44 46 53 3a 3a 54 65 63  |Ed.|   ADFS::Tec|
000001a0  68 6e 69 75 6d 2e 24 2e  55 74 69 6c 69 74 69 65  |hnium.$.Utilitie|
000001b0  73 2e 4d 69 73 63 2e 21  53 74 72 6f 6e 67 48 65  |s.Misc.!StrongHe|
000001c0  6c 70 0a 0a 0a 7c 20 53  65 74 20 75 70 20 73 6f  |lp...| Set up so|
000001d0  6d 65 20 64 72 61 67 20  63 6f 6d 6d 61 6e 64 73  |me drag commands|
000001e0  2e 2e 2e 0a 7c 0a 7c 20  44 72 61 67 67 69 6e 67  |....|.| Dragging|
000001f0  20 61 20 73 70 72 69 74  65 20 66 69 6c 65 20 74  | a sprite file t|
00000200  6f 20 74 68 65 20 62 61  72 20 77 69 6c 6c 20 6c  |o the bar will l|
00000210  6f 61 64 20 69 74 2c 20  62 79 2d 70 61 73 73 69  |oad it, by-passi|
00000220  6e 67 20 41 64 64 53 70  72 69 74 65 73 2e 0a 7c  |ng AddSprites..||
00000230  0a 23 44 52 41 47 5f 61  63 73 0a 20 20 66 66 39  |.#DRAG_acs.  ff9|
00000240  0a 20 2b 41 64 64 53 70  72 69 74 65 20 25 30 0a  |. +AddSprite %0.|
00000250  0a 7c 20 44 72 61 67 67  69 6e 67 20 61 20 7a 69  |.| Dragging a zi|
00000260  70 2d 66 69 6c 65 20 77  69 6c 6c 20 61 74 74 65  |p-file will atte|
00000270  6d 70 74 20 74 6f 20 75  6e 7a 69 70 20 69 74 20  |mpt to unzip it |
00000280  69 6e 74 6f 20 69 74 27  73 20 70 61 72 65 6e 74  |into it's parent|
00000290  20 64 69 72 65 63 74 6f  72 79 2e 0a 7c 0a 23 44  | directory..|.#D|
000002a0  52 41 47 5f 61 63 73 0a  20 20 64 64 63 0a 20 2b  |RAG_acs.  ddc. +|
000002b0  55 6e 7a 69 70 49 74 20  25 2a 31 0a 0a 7c 20 44  |UnzipIt %*1..| D|
000002c0  72 61 67 67 69 6e 67 20  61 20 64 69 72 65 63 74  |ragging a direct|
000002d0  6f 72 79 20 6f 72 20 61  70 70 6c 69 63 61 74 69  |ory or applicati|
000002e0  6f 6e 20 74 6f 20 74 68  65 20 62 61 72 20 77 69  |on to the bar wi|
000002f0  6c 6c 20 6f 70 65 6e 20  69 74 27 73 20 66 69 6c  |ll open it's fil|
00000300  65 72 20 77 69 6e 64 6f  77 2e 0a 7c 0a 23 44 52  |er window..|.#DR|
00000310  41 47 5f 61 63 73 0a 20  20 31 30 30 30 2c 32 30  |AG_acs.  1000,20|
00000320  30 30 0a 20 20 46 69 6c  65 72 5f 4f 70 65 6e 44  |00.  Filer_OpenD|
00000330  69 72 20 25 30 0a 0a 7c  20 53 68 69 66 74 2d 64  |ir %0..| Shift-d|
00000340  72 61 67 67 69 6e 67 20  61 6e 20 6f 62 6a 65 63  |ragging an objec|
00000350  74 20 74 6f 20 74 68 65  20 62 61 72 20 73 65 74  |t to the bar set|
00000360  73 20 74 68 65 20 43 53  44 20 74 6f 20 69 74 27  |s the CSD to it'|
00000370  73 20 70 61 72 65 6e 74  20 64 69 72 65 63 74 6f  |s parent directo|
00000380  72 79 2e 0a 7c 0a 23 44  52 41 47 5f 61 63 53 0a  |ry..|.#DRAG_acS.|
00000390  20 20 32 30 30 30 2c 31  30 30 30 2c 2d 31 0a 20  |  2000,1000,-1. |
000003a0  20 44 69 72 20 25 32 0a  0a 7c 20 41 6c 74 2d 64  | Dir %2..| Alt-d|
000003b0  72 61 67 67 69 6e 67 20  61 6e 20 41 62 73 6f 6c  |ragging an Absol|
000003c0  75 74 65 20 66 69 6c 65  20 74 6f 20 74 68 65 20  |ute file to the |
000003d0  62 61 72 20 77 69 6c 6c  20 61 74 74 65 6d 70 74  |bar will attempt|
000003e0  20 74 6f 20 75 6e 73 71  75 65 65 7a 65 20 69 74  | to unsqueeze it|
000003f0  2e 0a 7c 20 28 52 65 71  75 69 72 65 73 20 74 68  |..| (Requires th|
00000400  65 20 27 55 6e 73 71 75  65 65 7a 65 27 20 75 74  |e 'Unsqueeze' ut|
00000410  69 6c 69 74 79 20 69 6e  20 79 6f 75 72 20 6c 69  |ility in your li|
00000420  62 72 61 72 79 20 64 69  72 65 63 74 6f 72 79 29  |brary directory)|
00000430  0a 7c 0a 23 44 52 41 47  5f 41 63 73 0a 20 20 66  |.|.#DRAG_Acs.  f|
00000440  66 38 0a 20 20 55 6e 73  71 75 65 65 7a 65 20 25  |f8.  Unsqueeze %|
00000450  30 20 25 32 2e 7e 25 31  0a 0a 7c 20 43 74 72 6c  |0 %2.~%1..| Ctrl|
00000460  2d 64 72 61 67 67 69 6e  67 20 74 6f 20 74 68 65  |-dragging to the|
00000470  20 62 61 72 20 77 69 6c  6c 20 61 74 74 65 6d 70  | bar will attemp|
00000480  74 20 74 6f 20 70 72 6f  64 75 63 65 20 61 20 5a  |t to produce a Z|
00000490  69 70 66 69 6c 65 20 6f  66 20 74 68 61 74 20 6f  |ipfile of that o|
000004a0  62 6a 65 63 74 2e 0a 7c  20 28 52 65 71 75 69 72  |bject..| (Requir|
000004b0  65 73 20 74 68 65 20 27  5a 69 70 27 20 65 78 65  |es the 'Zip' exe|
000004c0  63 75 74 61 62 6c 65 29  0a 7c 0a 23 44 52 41 47  |cutable).|.#DRAG|
000004d0  5f 61 43 73 0a 20 20 32  30 30 30 2c 31 30 30 30  |_aCs.  2000,1000|
000004e0  2c 2d 31 0a 20 2b 5a 69  70 49 74 20 25 2a 31 0a  |,-1. +ZipIt %*1.|
000004f0  0a 0a 0a 7c 20 4e 6f 77  20 63 72 65 61 74 65 20  |...| Now create |
00000500  73 6f 6d 65 20 62 75 74  74 6f 6e 73 2e 2e 2e 0a  |some buttons....|
00000510  7c 0a 7c 20 4e 6f 74 65  20 6f 6e 20 6d 65 6e 75  ||.| Note on menu|
00000520  20 66 6c 61 67 73 3a 0a  7c 0a 7c 20 20 20 21 20  | flags:.|.|   ! |
00000530  2d 20 69 74 65 6d 20 69  73 20 61 6e 20 61 70 70  |- item is an app|
00000540  6c 69 63 61 74 69 6f 6e  0a 7c 20 20 20 64 20 2d  |lication.|   d -|
00000550  20 69 74 65 6d 20 69 73  20 61 20 64 69 72 65 63  | item is a direc|
00000560  74 6f 72 79 20 28 61 6e  64 20 77 69 6c 6c 20 62  |tory (and will b|
00000570  65 20 65 78 70 61 6e 64  65 64 20 77 68 65 6e 20  |e expanded when |
00000580  73 65 6c 65 63 74 65 64  29 0a 7c 20 20 20 62 20  |selected).|   b |
00000590  2d 20 62 6f 6f 74 20 74  68 69 73 20 61 70 70 6c  |- boot this appl|
000005a0  69 63 61 74 69 6f 6e 0a  7c 20 20 20 69 20 2d 20  |ication.|   i - |
000005b0  6a 75 73 74 20 74 61 6b  65 20 69 74 27 73 20 73  |just take it's s|
000005c0  70 72 69 74 65 0a 7c 20  20 20 73 20 2d 20 64 69  |prite.|   s - di|
000005d0  73 70 6c 61 79 20 61 20  73 70 72 69 74 65 0a 7c  |splay a sprite.||
000005e0  20 20 20 5f 20 2d 20 69  74 65 6d 20 68 61 73 20  |   _ - item has |
000005f0  61 20 73 65 70 61 72 61  74 6f 72 0a 7c 0a 0a 23  |a separator.|..#|
00000600  4d 45 4e 55 0a 41 70 70  73 0a 0a 5a 61 70 20 5b  |MENU.Apps..Zap [|
00000610  21 5d 0a 20 20 41 44 46  53 3a 3a 54 65 63 68 6e  |!].  ADFS::Techn|
00000620  69 75 6d 2e 24 2e 55 74  69 6c 69 74 69 65 73 2e  |ium.$.Utilities.|
00000630  45 64 69 74 6f 72 73 2e  21 5a 61 70 0a 50 72 69  |Editors.!Zap.Pri|
00000640  6e 74 65 72 73 20 5b 21  5d 0a 20 20 41 44 46 53  |nters [!].  ADFS|
00000650  3a 3a 54 65 63 68 6e 69  75 6d 2e 24 2e 44 54 50  |::Technium.$.DTP|
00000660  2e 21 50 72 69 6e 74 65  72 73 0a 53 74 72 6f 6e  |.!Printers.Stron|
00000670  67 48 65 6c 70 20 5b 21  5f 5d 0a 20 20 41 44 46  |gHelp [!_].  ADF|
00000680  53 3a 3a 54 65 63 68 6e  69 75 6d 2e 24 2e 55 74  |S::Technium.$.Ut|
00000690  69 6c 69 74 69 65 73 2e  21 53 74 72 6f 6e 67 48  |ilities.!StrongH|
000006a0  6c 70 0a 44 72 61 77 20  5b 21 73 5d 0a 20 20 52  |lp.Draw [!s].  R|
000006b0  65 73 6f 75 72 63 65 73  3a 41 70 70 73 2e 21 44  |esources:Apps.!D|
000006c0  72 61 77 0a 50 61 69 6e  74 20 5b 21 73 5d 0a 20  |raw.Paint [!s]. |
000006d0  20 52 65 73 6f 75 72 63  65 73 3a 41 70 70 73 2e  | Resources:Apps.|
000006e0  21 50 61 69 6e 74 0a 41  6c 61 72 6d 20 5b 21 73  |!Paint.Alarm [!s|
000006f0  5d 0a 20 20 52 65 73 6f  75 72 63 65 73 3a 41 70  |].  Resources:Ap|
00000700  70 73 2e 21 41 6c 61 72  6d 0a 43 68 61 72 73 20  |ps.!Alarm.Chars |
00000710  5b 21 73 5d 0a 20 20 52  65 73 6f 75 72 63 65 73  |[!s].  Resources|
00000720  3a 41 70 70 73 2e 21 43  68 61 72 73 0a 0a 0a 23  |:Apps.!Chars...#|
00000730  4d 45 4e 55 0a 4f 70 65  6e 20 44 69 72 0a 0a 44  |MENU.Open Dir..D|
00000740  54 50 20 5b 64 5d 0a 20  20 24 2e 44 54 50 0a 43  |TP [d].  $.DTP.C|
00000750  6f 6d 6d 73 20 5b 64 5d  0a 20 20 24 2e 43 6f 6d  |omms [d].  $.Com|
00000760  6d 73 0a 44 6f 77 6e 6c  6f 61 64 73 5f 20 5b 64  |ms.Downloads_ [d|
00000770  5d 0a 20 20 3c 44 6f 77  6e 6c 6f 61 64 73 24 44  |].  <Downloads$D|
00000780  69 72 3e 0a 43 53 44 0a  20 20 40 0a 4c 69 62 72  |ir>.CSD.  @.Libr|
00000790  61 72 79 20 5b 64 5d 0a  20 20 3c 42 6f 6f 74 24  |ary [d].  <Boot$|
000007a0  44 69 72 3e 2e 4c 69 62  72 61 72 79 0a 43 68 6f  |Dir>.Library.Cho|
000007b0  69 63 65 73 20 5b 64 5d  0a 20 20 3c 42 6f 6f 74  |ices [d].  <Boot|
000007c0  24 44 69 72 3e 2e 43 68  6f 69 63 65 73 0a 52 65  |$Dir>.Choices.Re|
000007d0  73 6f 75 72 63 65 73 20  5b 64 5d 0a 20 20 3c 42  |sources [d].  <B|
000007e0  6f 6f 74 52 65 73 6f 75  72 63 65 73 24 44 69 72  |ootResources$Dir|
000007f0  3e 0a 0a 0a 7c 20 53 70  72 69 74 65 73 20 6f 6e  |>...| Sprites on|
00000800  20 74 68 65 20 72 69 67  68 74 2c 20 74 68 69 73  | the right, this|
00000810  20 74 69 6d 65 0a 7c 0a  23 52 49 47 48 54 0a 0a  | time.|.#RIGHT..|
00000820  0a 7c 20 41 20 6d 65 6e  75 20 77 69 74 68 20 61  |.| A menu with a|
00000830  20 66 65 77 20 6d 61 63  72 6f 73 2e 2e 2e 0a 7c  | few macros....||
00000840  0a 23 4d 45 4e 55 0a 4d  69 73 63 0a 0a 53 68 6f  |.#MENU.Misc..Sho|
00000850  77 20 54 69 6d 65 0a 20  2b 54 69 6d 65 0a 53 68  |w Time. +Time.Sh|
00000860  6f 77 20 44 61 74 65 5f  0a 20 2b 44 61 74 65 0a  |ow Date_. +Date.|
00000870  52 65 53 6f 75 6e 64 20  5b 73 5d 20 73 6d 21 61  |ReSound [s] sm!a|
00000880  6c 61 72 6d 0a 20 2b 52  65 53 6f 75 6e 64 0a 52  |larm. +ReSound.R|
00000890  65 46 69 6c 65 72 20 5b  73 5f 5d 20 73 6d 61 6c  |eFiler [s_] smal|
000008a0  6c 5f 64 69 72 0a 20 2b  52 65 46 69 6c 65 72 0a  |l_dir. +ReFiler.|
000008b0  4b 69 6c 6c 20 54 6f 6f  6c 62 6f 78 0a 20 2b 4b  |Kill Toolbox. +K|
000008c0  69 6c 6c 54 42 6f 78 0a                           |illTBox.|
000008c8