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

Page "Icon Button Type/versions/new/5" does not exist. Please create it now, or hit the "back" button in your browser.

The Window Manager Dialog Boxes

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» Technical Details
» Dialog boxes

Overview

Dialog boxes are pre-defined windows for informing, and getting input from, the user.

The Wimp does not provide a way of changing pre-defined dialog boxes. However, it is possible to create windows that mimic the look and feel of dialog boxes to achieve the same effect.

There are three ways of using a dialog box.

# Type Description
1 Notification To display information to the user
2 Static To allow the user to enter information or make a choice
3 Menu Entry As a window that is opened via a menu system option

Opening a Dialog Box

There are two methods of opening a dialog box:

1 Use the Wimp_OpenWindow to open a dialog box like a standard window
2 Use Wimp_CreateMenu if the dialog box is to be opened via the menu system. This ensures that the dialog box is opened as if it was a menu window. i.e a non-persistent window that will close if the mouse pointer is clicked outside of the dialog box

Note: If a dialog box is available via the menu system and has a keyboard shortcut assigned, then the dialog should be opened as a menu (option 2 above) as this will ensure that it will be opened in the same manner as it would via the menu system.

Icons

Any type of icon can be assigned within a user-defined dialog box, as it is just a standard window.

See also

  • Wimp_CreateMenu
  • Wimp_OpenWindow

RISC OS has many guidelines on the appropriate use of dialog boxes. For a complete detailed guide on dialog boxes, please see the RISC OS Style Guide.

Revised on January 28, 2010 11:24:51 by GavinWraith (26)? (127.0.0.1)
Edit | Back in time (4 revisions) | See changes | History | Views: Print | Source | Linked from: The Window Manager Technical Details, Wimp_CreateMenu

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