Table of Contents
Preview #
About #
GraffitiPopupMenu is a beautiful, powerful class that allows developers to provide a means of selecting individual field data.
Enumerations #
This class exposes no enumerations.
Constants #
This class exposes no constants.
Events #
Name | Parameters | Return Type | Description |
---|---|---|---|
DrawValue | g as Graphics bounds as Xojo.Rect | Boolean | Raised before the value is drawn, allowing developers to completely alter the appearance of the row’s data. Return True to override default drawing. |
PerformSearch | searchText as String | GraffitiPopupMenuSections() | Raised when a search is being performed. Helpful for implementing customized searches based on database records. |
SelectionChanged | None | None | Raised when the SelectedItem has changed. |
Methods #
Name | Parameters | Return Type | Description |
---|---|---|---|
Add | item as GraffitiPopupMenuSection | None | Adds a new item to the control. |
AddAt | index as Integer item as GraffitiPopupMenuSection | None | Adds a new item to the control at the specified index. |
ItemAt | index as Integer | GraffitiPopupMenuSection | Returns the container at the specified index in the internal array. |
IndexOf | item as GraffitiPopupMenuSection | Integer | Returns the index of the specified item within the internal array. |
LastIndex | None | Integer | Returns the last index of items in the internal array. |
Remove | item as GraffitiPopupMenuSection | None | Removed the specified item and its associated item. |
RemoveAll | None | None | Remove all currently added items. |
RemoveAt | index as Integer | None | Removes the item at the specified index. |
SearchItems | text as String | GraffitiPopupMenuItem() | Returns items matching the search string using the same algorithm as the popup. |
Properties #
Name | Type | Default Value | Description |
---|---|---|---|
BackgroundColor | ColorGroup | Nil | Color drawn to the background of the component. |
BorderColor | ColorGroup | Nil | Color used to draw the component’s border. |
BorderRadius | Integer | 0 | Height and width of corner radius. |
BorderSize | Integer | 1 | Pen size used to draw the component’s border. |
ClearButtonCaption | String | “Clear” | Text of the clear button on the popup. |
ClearButtonVisible | Boolean | True | Determines whether the clear button is visible on the popup. |
ParentScreen | MobileScreen | Nil | Should be set in Opening and controls the display style of the popover. |
SearchFieldHint | String | “Search…” | Text used as a hint within the search field on the popup. |
SearchFieldVisible | Boolean | True | Controls visibility of the search button on the popup. |
SelectedItem | GraffitiPopupMenuItem | Nil | Currently selected Item. |
ValueFont | Font | Nil | Font used for drawing the value of items within the component. |