RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

The Window Manager The Icon Bar

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» Technical Details
» The Icon Bar

Overview

The iconbar is a window which is located at the bottom of the screen. Its purpose is three-fold.

1 To provide access to filing systems and device icons (left side of iconbar)
2 To provide access to loaded applications (right side of iconbar)
3 To provide access to the Task Manager and Display Manager (right most side of iconbar)

It provides access by displaying an icon that represents the application, filing system or device icon.

If there are too many icons on the iconbar, then the Wimp will automatically scroll the iconbar whenever the mouse pointer is positioned close to either end of the bar.

An icon placed on the iconbar can also have text underneath it. It is up to the application to decide the purpose of the text.

Registering an Icon

When an application, filing system or device wishes to be registered on the iconbar, the Wimp_CreateIcon is used (with the appropriate window handle). It is the window handle that determines where on the iconbar the icon should be placed.

In adherence to the RISC OS Style Guide the icon used should be the sprite used within the Filer for the application itself. See for example; the !Edit application.

Mouse Clicks

When the mouse pointer is clicked on an icon, the Wimp returns the Mouse_Click event (with a window handle of -2) to the application which created the icon originally.

Also, calling Wimp_GetPointerInfo returns a window handle of -2 when the pointer is partially or completely over the iconbar.

Icon Dimensions

When the Wimp is called to place an icon on the bar (registering an icon), it uses the icon’s x co-ordinates (see Wimp_CreateIcon) only to determine its width. The Wimp then decides how best to position the icon.

However, the Wimp does use both the icon’s y co-ordinates to determine the icon’s vertical position. Consequently applications must be aware of the ‘standard’ dimensions of the iconbar, in order to position their icons correctly.

Icons that appear on the iconbar should have a width and height of 68 OS units square.

See also

For a full detailed description on how to position Icons can be found in the Positioning icons on the iconbar? section within the RISC OS Style Guide.

Revised on January 31, 2010 06:26:58 by Trevor Johnson (329)? (127.0.0.1)
Edit | Back in time (3 revisions) | See changes | History | Views: Print | Source | Linked from: The Window Manager Technical Details, The Window Manager Applications And Documents

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys