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 "Wiki/versions/7" does not exist. Please create it now, or hit the "back" button in your browser.

Message_PreQuit

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» Messages
» Message Codes
» Message_PreQuit

Message_PreQuit

(Code &8)
Message Block
+20 Flag, bit 0 clear if desktop shutdown, otherwise set
  Check block length – if < 20 assume a flag word of 0

Use

This message is used to notify a task that it is about to be Quit.

Notes

This message is sent to a specific task when the user tries to quit it from the task display menu.

This message is also broadcast to all tasks when the computer is being shut-down.

If the task has no objections to be quit, it should simply ignore the message. It will then receive a Message_Quit message.

An application that does not wish to quit, perhaps due to unsaved data, should acknowledge this message using Wimp_SendMessage, then open a dialogue box allowing the data to be first saved.

If bit 0 is unset. i.e. the message has been broadcast due to the system being shutdown. The application should re-start the shutdown process again. This can be easily achieved by emitting a Ctrl-Shit F12 key press using Wimp_ProcessKey.

See also

  • Message_Quit
  • Wimp_Poll
  • Wimp_ProcessKey
  • Wimp_SendMessage
Revised on June 28, 2009 13:42:23 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: The Window Manager Applications And Documents, Message_Quit, Message Codes, TaskManager Shutdown Types

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