Setting up BlackBox
Once the BlackBox developement tools have been downloaded and installed we recommend you make some minor configuration changes to them. First make a backup copy of the Menus.odc file in the directory Dev/Rsrc. Then edit the menu file so that the "Info" menu is renamed to "Dev Info". Next cut and paste these lines to the end of the "Dev" menu (just before the bold "END ")
SEPARATOR
"Copy Runtime..." "" "StdCmds.OpenToolDialog('Dev/Rsrc/BugsRuntime', 'Bugs Runtime')" ""
"Copy Soure..." "" "StdCmds.OpenToolDialog('Dev/Rsrc/BugsSource', 'Bugs Source')" ""
You will need to restart BlackBox for these changes to take effect.
The modification to the Dev menu will make the tools to distribute OpenBUGS visible but the
tools will not created until the OpenBUGS source code is compiled.
Unpack the OpenBUGS source code zip file into a temp directory and then copy all the
directories and files from this temp directory into the BlackBox directory. Your BlackBox
directory should now contain sub directories Bugs ...Xhtml plus a few files.
When you compile the OpenBUGS source code the following modules from the BlackBox
distribution will be replaced by modified versions: HostCmds, HostMenus and DevDebug. The
first two modules have been modified so that a modal dialog box pops up when you try and quit
OpenBUGS (and BlackBox) This stops the user from quitting a long running simulation by
accidentaly clicking on the close button. DevDebug is modified so that it does not use the
strange DevCommanders and also to translate hexidecimal address to nodes in the BUGS
model if possible. You might want to make backup copies of Host/Code/Cmds.ocf,
Host/Code/Menus.ocf and Dev/Code/Debugs.ocf before compiling their source code