www.riscos.com Technical Support: |
|
The Acorn C/C++ product introduced the RISC OS Toolbox, which makes it much easier to write consistent, high-quality desktop applications whose user interface complies with the RISC OS 3 Style Guide. The key parts of the Toolbox are:
The TinyStubs module, which provides TinySupport_... SWIs for internal use within the Toolbox.
Using the Toolbox has a number of advantages. In particular:
The Toolbox modules support multiple applications, so their code can be shared, avoiding unnecessary duplication of code, and hence cutting down on memory usage.
To cut down still further on the memory requirement of applications written to use the Toolbox, the RISC OS 3.6 ROM contains all its modules (ie the Toolbox module itself, the TinyStubs module, and each of the object modules). Toolbox applications therefore don't need to load the modules into RAM, and much of their user interface is implemented by shared code that runs from ROM. The object modules supplied are:
The Toolbox is documented in the User Interface Toolbox guide, supplied with Acorn C/C++.
To write applications that use the Toolbox, you will need to purchase Acorn C/C++, so that you have:
Applications communicate with the Toolbox using standard RISC OS mechanisms such as SWIs (known as Toolbox methods) and Wimp events (known as Toolbox events). You therefore don't have to write Toolbox applications using the languages supplied with Acorn C/C++ (ie C, C++, and ARM assembler); you can use other languages such as BASIC.