Toolbars
This document describes UPDD toolbars in UPDD V6 and V7: what they are, how to define, place and test them in the UPDD Console, and examples of their use.
A toolbar is an area on the touch screen that acts independently from the main calibrated video area, as shown below:
| Touch screen covering video with an on-screen toolbar defined on top of the normal calibrated area | Touch screen covering the video area and extended to the right, with four off-screen toolbars defined |
A toolbar can be subdivided into areas of equal size, arranged into a specified number of rows and columns. The system pointer does not move from its current position when a toolbar is touched.
Toolbars are used in all manner of pointer device applications:
- Toolbars can simply be used to mask off areas of the calibrated video area, so no touch is passed through to the OS.
- They can be used to trigger an event via the UPDD API, so that application functions can be triggered by touching a toolbar. This is particularly useful on touch systems where the touch screen is larger than the video display, with touches outside the video area handled by an external application.
- A toolbar event can be used to change which action a gesture will trigger in UPDD Commander.
Toolbars can be positioned anywhere on a touch screen as suits requirements. Toolbars that reside outside the main touch screen / video display area are normally referred to as off-screen toolbars.
Toolbars can be calibrated individually or, for on-screen toolbars, defined so that their position is relative to the main video calibration area.
Toolbar definition
Toolbars are rectangular and are defined and configured in the UPDD Console, Toolbars tab. In UPDD V7 toolbars are defined per monitor; in UPDD V6 they were defined per device:
| V6 toolbar dialog: device based | V7 toolbar dialog: monitor based |
![]() |
Individual sections are described below:
| Section | Function |
| Toolbars | Lists the toolbars. Shows toolbar number and name. |
| Create a toolbar. | |
| Delete a toolbar. | |
| Position | Defines the position of the toolbar. On screen: the toolbar is associated with the calibrated screen co-ordinates in the X and Y range 0 - 65535 (65536 co-ordinates). The toolbar placement can be defined via the co-ordinate controls or calibrated on the screen using the Calibrate option. This option is used to create toolbars that reside on top of the video area. Off screen: the toolbar is associated with the raw co-ordinate range of the touch device. The toolbar placement is defined using the Calibrate option. This option is used to create toolbars that reside outside the video area. |
| Layout | Defines the number of rows and columns within the toolbar; defaults to 1 x 1. |
| Calibrate | Invokes a calibration procedure used to define the location of the toolbar on the touch screen. |
| Enabled | When selected, the toolbar is enabled. |
| Hold touch | When selected, if a touch starts outside a toolbar and then moves into a toolbar area, the touch remains held. This avoids, for example, unexpected button presses when a touch moves from a button into a toolbar area: buttons in GUIs generally act on release, not when the mouse is moved off the button, so with this option standard behaviour is retained. When not selected, a lift off (end of touch) occurs when the point of touch moves into the toolbar area. |
| Active whilst calibrating | The toolbar is still active during the UPDD calibration procedure, so any touches in the toolbar will be ignored. It is therefore important that the calibration cross is not under a toolbar. |
| Latched (V7 only) | Indicates a toolbar can be latched on, rather than having to be touched to register as being touched. A latched-on toolbar is set off if tapped. Touching a latched toolbar for a period of time will always set it off, irrespective of its current state. |
| Monitor (V7 only) | The associated monitor. |
Toolbar layout
By default a toolbar has 1 row and 1 column.
If using the UPDD API to receive toolbar notifications (the application is called when a toolbar is touched), the application will receive details relating to the toolbar, including the row and column identifier. Depending on how the toolbar is being used it may be desirable to define a specific number of rows and columns. The Layout option is used for this purpose.
In this example the toolbar has 1 column and 5 rows:
Toolbar test
When a toolbar layout is being shown in the layout screen it also offers visual feedback to show if the toolbar is being touched. This allows you to test that the toolbar exists at the expected location and is being recognised by the driver.
In this example the middle cell of the toolbar is being physically touched on the touch screen:
The UPDD command line utility can also list the toolbar events reported on the UPDD API, with the command upddutils toolbar_events (or te): device, id, name, stylus, row, column and touch state. The following example shows touches within a 1 column, 5 row toolbar called 'Rightmost', with each toolbar cell being touched in turn:
The command is described in the upddutils command line reference.
Toolbar placement
Given that toolbars are rectangular, their position can be defined by their top left and bottom right corners.
Given that toolbars define an area of the touch screen, their location relates to the physical co-ordinate range of the touch screen, typically 0-1024 or 0-4096. However, in most cases a toolbar is on top of the video area, so it is more natural to define a toolbar relative to the calibrated co-ordinate range, as this relates to the visual monitor display. The driver's calibrated co-ordinate range is 0 - 65535 (65536 co-ordinates).
There are two ways to define the toolbar's position:
| Method | Description |
| Calibrate | For both on-screen and off-screen toolbars you can use the Calibrate option to define the location. The calibrate function requests that you touch the top left and bottom right corners of the toolbar position. Touch the requested toolbar corner until the blue circle appears For on-screen toolbars the calibrated co-ordinates are listed and the toolbar's display location is shown in the display area. The values can be manually adjusted at any time, which is useful for fine alignment: For off-screen toolbars the raw co-ordinates are listed, but they do not represent a true position on the display, so there is no visual representation in the display area. The raw touch co-ordinates are shown in the co-ordinate fields for information only and cannot be adjusted manually. |
| Manual | For on-screen toolbars you can specify the calibrated co-ordinates in the range 0 - 65535. For example, to place a toolbar on the right half of the display you can enter the values: |
The co-ordinate field values only change if calibrated or explicitly changed manually.
Toolbar API
When a toolbar cell is touched this is notified to any application program that has registered an interest using the UPDD API, as described in Device control from the API.
Toolbars are multi-touch aware, so the API notification also includes the stylus number, as shown in this toolbar event example output with two touches in one toolbar cell:
A toolbar calibration can also be invoked from the API.
Toolbar examples
A few examples of where you might typically employ toolbar functionality:
| Example | Description |
| Screen masking | It may be desirable to disable a part of the touch screen that sits over an area of the video display. For example, with an unattended kiosk there is always the possibility that the application may crash, leaving the OS desktop on display. You may wish to mask off the lower left corner on a Windows system so that the Windows Start menu cannot be selected. You could also be running a standard desktop application in full screen mode on a touch screen system, where the dialog controls are visible and potentially touchable, and want to make this area non-touchable so that touch users cannot close or minimise the application. In this case you would define and calibrate a toolbar over these controls: |
| Presentation annotation | Used in a live TV broadcast for a financial subscription channel. The presenter needed to enable / disable live on-screen annotation with an 'invisible' touch. Toolbars were placed in all four corners so that the annotate function could be invoked from either side: a touch in the top enabled annotate, a touch in the bottom disabled it. |
| Whiteboard function bar | Many whiteboards use function bars on either side of the whiteboard, such as the example below. Placing a touch toolbar over these function bars allows applications to be invoked when they are touched, determine the function selected and act accordingly.![]() |
| Petrol pump | A petrol pump application where off-screen toolbars were used to control the petrol pump application. Four toolbars were used: Left, Right, Keypad and Numpad, with rows and columns defined as required.![]() |
| Generic touch device | A generic touch device that could be used with both standard mouse emulation and off-screen functions. The appropriate toolbars were used to add off-screen application touch functionality.![]() |



