RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Message_PreQuit

WindowManager
» 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-Shift F12 key press using Wimp_ProcessKey.

See also

  • Message_Quit
  • Wimp_Poll
  • Wimp_ProcessKey
  • Wimp_SendMessage
Revised on September 14, 2020 22:58:40 by Steve Pampling (1551)? (86.166.143.130)
Edit | Back in time (3 revisions) | See changes | History | Views: Print | Source | Linked from: WindowManager Applications And Documents, Message Codes, Message_Quit, TaskManager_Shutdown, Configure

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 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