Castle Game Engine: CastleWindowModes

# Unit CastleWindowModes
Description | Uses | Classes, Interfaces, Objects and Records | Functions and Procedures | Types | Constants | Variables
## Description Helpers for making modal boxes (TWindowState, TGLMode, TGLModeFrozenScreen) cooperating with the TCastleWindowBase windows. They allow to easily save/restore TCastleWindowBase attributes along with OpenGL state. This unit is a tool for creating functions like CastleMessages.MessageOK. To make nice "modal" box, you want to temporarily replace TCastleWindowBase callbacks with your own, call Application.ProcessMessage method in a loop until user gives an answer, and restore everything. This way you can implement functions that wait for some keypress, or wait until user inputs some string, or wait until user picks something with mouse, or wait for 10 seconds displaying some animation, etc. ## Uses SysUtils GL CastleWindow CastleGLUtils CastleImages CastleMessages CastleUIControls CastleKeysMouse CastleGLImages ## Overview ### Classes, Interfaces, Objects and Records
Name | Description
--- | ---
Class `TWindowState` |
Class `TGLMode` | Enter / exit modal box on a TCastleWindowBase.
Class `TGLModeFrozenScreen` | Enter / exit modal box on a TCastleWindowBase, additionally saving the screen contents before entering modal box.
### Functions and Procedures
`procedure NoClose(Window: TCastleWindowBase);`
## Description ### Functions and Procedures
`procedure NoClose(Window: TCastleWindowBase);`
Empty TCastleWindowBase callback, useful as TCastleWindowBase.OnCloseQuery to disallow closing the window by user.
Generated by PasDoc 0.13.0 on 2013-08-17 21:27:15