TBX C++ toolbox library


Table of Contents

1. Introduction
Introduction
Requirements
2. Getting started
Files for a RISC OS Toolbox application
Using the TBX library
3. Creating a minimal desktop application
TbxMin description
Creating the application files
Creating the application code
Building the application
4. The core TBX classes
The Application class
Toolbox objects
Menu items
Gadgets
5. The TBX event system
Object/Gadget default events
User Events
Commands
WIMP window events
WIMP application messages
Idle events and timers
6. Utility classes and functions
The Path class
Reporting errors, messages and questions.
String utilities
7. Creating a Simple application with one Window
Creating the application
Hooking code up to when the Window is shown by the toolbox
Hooking code up to the gadgets
Implementing the event/command handling
8. Creating a Document based application
9. Graphics
Redraw listeners
Graphics class
Displaying text
Displaying images
Drawings
10. View classes
Item views
11. Using toolbox resources from memory

List of Examples

2.1. Compiling and linking a single source file program to TBX
4.1. Common contents of the main for a tbx routine
4.2. Multiple C++ instances refer to one Toolbox object
4.3. Creating a toolbox object in code
4.4. Getting a reference to a toolbox object when it is autocreated
4.5. Getting a reference toolbox object from another toolbox object
4.6. Getting a WritableField from a window
5.1. To add a changed listener to a writeable field w
9.1. Redrawing a screen using OffsetGraphics
10.1. A simple class to render a vector of strings in a window
11.1. Adding some extra menu items to a menu