# 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 |
| --- | :---: | :---: | --- |
| Sub | Add | (None) | Adds an instance of the modal to the parent window. |
| Sub | Hide | (None) | Hides the specified modal. |
| Function | ModalWithName | As | Find and return a modal by its name supplied during creation. |
| Sub | Remove | (None) | Removes a modal from the controller. |
| Sub | Resize | (None) | Forces a resize and redraw to match changed parent dimensions. |
| Sub | Show | (None) | Shows the specified modal in the parent window. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Private | | GraffitiModalInstance | |
| Window | DesktopWindow | Nil | 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. |