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 (TGLMode, TGLModeFrozenScreen) cooperating with the TCastleWindowCustom windows. They allow to easily save / restore TCastleWindowCustom attributes. This unit is a tool for creating functions like CastleMessages.MessageOK. To make nice "modal" box, you want to temporarily replace TCastleWindowCustom 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 Classes CastleWindow CastleGLUtils CastleImages CastleUIControls CastleKeysMouse CastleGLImages CastleControls ## Overview ### Classes, Interfaces, Objects and Records
Name | Description
--- | ---
Class `TGLMode` | Enter / exit modal state on a TCastleWindowCustom.
Class `TGLModeFrozenScreen` | Enter / exit modal box on a TCastleWindowCustom, additionally saving the screen contents before entering modal box.
### Functions and Procedures
`procedure NoClose(Container: TUIContainer);`
## Description ### Functions and Procedures
`procedure NoClose(Container: TUIContainer);`
Empty TCastleWindowCustom callback, useful as TCastleWindowCustom.OnCloseQuery to disallow closing the window by user.
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:13