This Document
|
"2: Window Manager" Bitmap
|
|
|
|
Setting the slider to 0 results in a non-modal window. Users can access what is beneath non-modal windows. Setting the slider to anything other than 0 results in a modal window. Users can access nothing below modal windows when they are open. Modal windows need to be closed before users can access anything underneath them. An example of a modal window is the 'File>Save As' modal dialog box we typically encounter in applications: you must close that window before you can proceed. An example of a non-modal window is the typical implementation of the Edit>Find dialog box: you can access the document underneath the dialog box while the Edit>Find dialog box is open. The "2: Window Manager" bitmap plays a special role in modal windows. When the above-mentioned slider is set to a value other than 0, the WFS pWFSInitialVisibility property is set to TRUE, so that when the user opens the modal window, the "2: Window Manager" bitmap is made visible, and is made large enough to cover the entire screen (not just the Stage, in case the Stage is resized at some point to cover the entire screen), and its locZ is lower than the other elements of the modal window, ie, it is below the window in locZ, but above everything else below the window. And the Director "blend" property of the "2: Window Manager" bitmap is set so that if the above-mentioned slider is at x, so is the "blend" value. This accomplishes the dimming of the background you see in the main demo of WFS concerning modal windows. In Director, when a sprite is visible, its mouse handlers, if it has any, are active. When it is invisible, its mouse handlers are not active. When the "2: Window Manager" bitmap is visible, the mouse handlers in the "3: Window Manager" behavior are active. They don't do anything but soak up mouse events. This is why the user cannot access anything below a modal window. As mentioned above, when you create a non-modal window, the "3: Window Manager" behavior positions the "2: Window Manager" behavior offstage when the movie starts. And it stays there during the course of the movie. It has no on-stage role concerning non-modal windows. It is just a sprite for the "3: Window Manager" behavior, in this case, to do its job behind the scenes.
|
|
| |
|