GraffitiPopupMenu

Images #

About #

GraffitiPopupMenu is a drop-in replacement for the standard Xojo popupmenu control that supports custom-drawing events for rows and the currently selected value, multiple columns, and has a beautiful platform- and theme-aware design to make it look and feel at home in any UI.

Enumerations #

Name Values

This class exposes no enumerations.

Constants #

Name Type Value

This class exposes no constants.

Events #

Name Parameters Return Type Description
CellBackgroundPaint g as Graphics Boolean Raised when the cell’s background is being drawn.
row as Integer
column as Integer
CellTextPaint g as Graphics Boolean Raise when the cell’s text is being drawn.
row as Integer
column as Integer
x as Integer
y as Integer
Change None None Raised when the user makes a selection.
KeyDown Key as String Boolean Raised when the user presses a key on their keyboard while the component has focus.
ShowMenu None None Raised when the menu is shown.
ValuePaint g as Graphics Boolean Raised when drawing the value in the primary display area.
byRef bounds as REALbasic.Rect

Methods #

Definition Parameters Return Type Description
AddRow ParamArray Item as String None Adds a row of content.
Cell rowIndex as Integer String Returns the content of the specified cell.
colIndex as Integer
Cell rowIndex as Integer None Sets the content of the specified cell to the provided newValue.
colIndex as Integer
assigns newValue as String
CellTag rowIndex as Integer String Returns the content of the specified cell.
colIndex as Integer
CellTag rowIndex as Integer None Sets the content of the specified cell to the provided newValue.
colIndex as Integer
assigns newValue as String
Heading index as Integer String Returns the current text assigned to the column header at the specified index.
Heading index as Integer None Assigns newValue to the column header specified by index.
assigns newValue as String
InsertRow atIndex as Integer None Inserts the specified text at the provided index.
rowText as String
index as Integer = 0
LastIndex None Integer Returns the last row’s index.
ListCount None Integer Returns the number of items added.
PopUp None None Shows the menu.
RemoveAllRows None None Removes all rows from the control.
RemoveRow rowIndex as Integer None Removes the specified row.
Row rowIndex as Integer String Returns the content of the specified cell.
Row rowIndex as Integer None Sets the content of the specified cell to the provided newValue.
assigns newValue as String
RowTag rowIndex as Integer String Returns the content of the specified cell.
RowTag rowIndex as Integer None Sets the content of the specified cell to the provided newValue.
assigns newValue as String
Text None String Returns the currently drawn item text within the display.
Text assigns value as String None Sets the current drawn item text within the display.

Properties #

Name Type Default Value Description

This class exposes no properties.

Examples #

This class currently has no examples.

Notes #

This class currently has no notes.