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

Wimp_CreateIcon (icon bar syntax)

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» SWI Calls
» Wimp_CreateIcon
» Wimp_CreateIcon (icon bar syntax)

Wimp_ CreateIcon (icon bar syntax)

(SWI &400C2)
Entry
R0 Icon Priority, or
Icon handle number
R1 Pointer to block
+0 Icon bar Position
+4 Icon Block
Exit
R0 Icon handle

Use

This purpose of this call is to create and display an icon on the icon bar. An icon can be positioned next to a specific icon, or displayed in order of priority.

Icon bar Position

A list of all the different methods an icon can be positioned on the icon bar is in the Icon bar Position page.

The Wimp is able to group icons together on the icon bar if values -3 or -4 are used. Icons can also be positioned based in the order of their priority.

Icon Priority

This is used to specify the placement of an icon in relation to other icon priority values. Icons with higher values are placed towards the outer edge of the icon bar, which is determined by the scan direction.

For a list of common desktop module priority values, please see the Icon Priority page.

Icon Block

The icon block contains all the information required to create the icon itself. The block starts at R1+4 for this call. A full detailed description can be found in the Icon Block page.

See also

  • Wimp_CreateIcon (window syntax)
  • Wimp_DeleteIcon
  • Wimp_CreateWindow
Revised on June 5, 2009 01:52:31 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (3 revisions) | See changes | History | Views: Print | Source | Linked from: Wimp_CreateIcon, Wimp_CreateIcon (window syntax), Icon Priority, Icon Bar Position

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