# GraffitiModal
Class
## About
GraffitiModal is a powerful modal overlay control that embeds containers within DesktopWindows and provides both an elegant and easy-to-use interface.
## Preview
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| True | True |
### Desktop
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Attributes
| Name | Value |
| --- | --- |
| DefaultEvent | "Shown" |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| DataAvailable | modal as GraffitiModalInstance <br> data as Dictionary | (None) | Raised when calling the Action method from within a GraffitiModalContainer. |
| Hidden | modal as GraffitiModalInstance | (None) | Raised when a modal instance has been hidden. |
| Shown | modal as GraffitiModalInstance | (None) | Raised when a modal instance has been shown. |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Add | modal as GraffitiModalInstance | (None) | Adds an instance of the modal to the parent window. |
| Hide | modal as GraffitiModalInstance | (None) | Hides the specified modal. |
| ModalWithName | name as String | GraffitiModalInstance | Find and return a modal by its name supplied during creation. |
| Remove | modal as GraffitiModalInstance | (None) | Removes a modal from the controller. |
| Resize | (None) | (None) | Forces a resize and redraw to match changed parent dimensions. |
| Show | modal as GraffitiModalInstance | (None) | Shows the specified modal in the parent window. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Window | DesktopWindow | (None) | This property must be set upon creation of the GraffitiModal instance. If you have dragged GraffitiModal to a DesktopWindow, set this value in the Opening event of that window. If you are instantiating the class in code, set the value immediately after creating the class instance. |