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 #

NameParametersReturn TypeDescription
DrawValueg as Graphics
bounds as Xojo.Rect
BooleanRaised before the value is drawn, allowing developers to completely alter the appearance of the row’s data. Return True to override default drawing.
SelectionChangedNoneNoneRaised when the SelectedItem has changed.

Methods #

NameParametersReturn TypeDescription
Additem as GraffitiPopupMenuSectionNoneAdds a new item to the control.
AddAtindex as Integer
item as GraffitiPopupMenuSection
NoneAdds a new item to the control at the specified index.
ItemAtindex as IntegerGraffitiPopupMenuSectionReturns the container at the specified index in the internal array.
IndexOfitem as GraffitiPopupMenuSectionIntegerReturns the index of the specified item within the internal array.
LastIndexNoneIntegerReturns the last index of items in the internal array.
Removeitem as GraffitiPopupMenuSectionNoneRemoved the specified item and its associated item.
RemoveAllNoneNoneRemove all currently added items.
RemoveAtindex as IntegerNoneRemoves the item at the specified index.
SearchItemstext as StringGraffitiPopupMenuItem()Returns items matching the search string using the same algorithm as the popup.

Properties #

NameTypeDefault ValueDescription
BackgroundColorColorGroupNilColor drawn to the background of the component.
BorderColorColorGroupNilColor used to draw the component’s border.
BorderRadiusInteger0Height and width of corner radius.
BorderSizeInteger1Pen size used to draw the component’s border.
ClearButtonCaptionString“Clear”Text of the clear button on the popup.
ClearButtonVisibleBooleanTrueDetermines whether the clear button is visible on the popup.
ParentScreenMobileScreenNilShould be set in Opening and controls the display style of the popover.
SearchFieldHintString“Search…”Text used as a hint within the search field on the popup.
SearchFieldVisibleBooleanTrueControls visibility of the search button on the popup.
SelectedItemGraffitiPopupMenuItemNilCurrently selected Item.
ValueFontFontNilFont used for drawing the value of items within the component.