GraffitiDrillMenu

Images #

About #

GraffitiDrillMenu is a beautiful, animated alternative to tree-style UI components.

Features:

  • Animated traversal
  • Infinite number of levels
  • Per-item notification counts
  • Global custom styling properties
  • Per-item custom styling properties

Enumerations #

This class exposes no enumerations.

Constants #

This class exposes no constants.

Events #

DefinitionDescription
ItemExpand(item as GraffitiDrillMenuItem) As BooleanTriggered when an item is expanded (or, more appropriately, when thee display shifts to display an item’s children).
ContextClick()Triggered when the user right-clicks.
DrawBackBackground(g as Graphics, Hover as Boolean) As BooleanRaised when the background of the Back is being drawn.
DrawBackExpandWidget(g as Graphics, bounds as REALbasic.Rect, Hover as Boolean) As BooleanRaised when the Back expand icon is being drawn.
DrawBackText(g as Graphics, byRef bounds as REALbasic.Rect, Hover as Boolean) As BooleanRaised when the text of the Back item is being drawn.
DrawItemBackground(g as Graphics, item as GraffitiDrillMenuItem, Hover as Boolean) As BooleanRaise when drawing the background of an item.
DrawItemExpandWidget(g as graphics, item as GraffitiDrillMenuItem, bounds as REALbasic.Rect, Hover as Boolean) As BooleanRaised when drawing the expand icon of an item.
DrawItemIcon(g as graphics, item as GraffitiDrillMenuItem, bounds as REALbasic.Rect, Hover as Boolean) As BooleanRaised when draw the icon of an item.
DrawItemNotification(g as Graphics, item as GraffitiDrillMenuItem, Hover as Boolean) As BooleanRaise when drawing the Notification area of an item.
DrawItemText(g as Graphics, item as GraffitiDrillMenuItem, bounds as REALbasic.Rect, Hover as Boolean) As BooleanRaised when drawing the text of an item.
ItemClick(item as GraffitiDrillMenuItem)Raise when the user clicks an item.
ItemContextClick(item as GraffitiDrillMenuItem)Raised when the user context clicks and item.
ItemDoubleClick(item as GraffitiDrillMenuItem)Raised when the user double-clicks and item.
ScrollChange()Raised when the display has been scrolled.
ViewChange(item as GraffitiDrillMenuItem)Raised when the display is changed to display a different set of items.

Methods #

DefinitionDescription
AddItem(item as GraffitiDrillMenuItem)Adds a new top-level item.
getItemIndex(item as GraffitiDrillMenuItem)Returns the index of the specified item.
InsertItem(atIndex as Integer, item as GraffitiDrillMenuItem)Inserts the provided item at the specified index.
Item(atIndex as Integer) as GraffitiDrillMenuItemReturns the item at the specified index.
ItemCount() as IntegerReturns the number of top-level items currently added to the control.
RemoveAll()Removes all top-level items.
RemoveItem(atIndex as Integer)Removes the item at the specified index.
ScrollTo(item as GraffitiDrillMenuItem)Scrolls to the specified item.

Properties #

NameTypeDefault ValueDescription
AnimatedBooleanTrueWhen True the display will animate while switching.
BackItemTextString“Back”Text used in the Back item at the top of sub-item views.
BackItemTextBoldBooleanFalseFont weight of Back item text.
BackItemTextBoldHoverBooleanFalse
BackItemTextColorColor&c000000Color used to draw Back item text.
BackItemTextColorHoverColor&c000000
BackItemTextFontString“System”Font face of Back item text.
BackItemTextFontHoverString
BackItemTextItalicBooleanFalseWhen True, Back item text is italicized.
BackItemTextItalicHoverBoolean
BackItemTextSizeInteger14Text size of Back item.
BackItemTextSizeHoverInteger
BackItemTextUnderlineBooleanWhen True, an underline is applied to Back item text. 
BackItemTextUnderlineHoverBoolean
BGColorColor&c000000Background color of component display.
BorderColorColor&c000000Border color of component display.
BorderRadiusInteger12Corner radius of component display.
CurrentViewGraffitiDrillMenuItemNilCurrent item being viewed. Nil for top-level.
CustomColorsBooleanFalseWhen True, custom color properties will be applied to drawing.
ExpandOnDoubleClickBooleanFalseWhen True, component will only change view when the user double-clicks an item with children.
ItemBGColorColor&c000000Background color of items.
ItemBGColorHoverColor&c000000
ItemBGColorSelectedColor&c000000
ItemBorderColorColor&c000000Border color of items.
ItemBorderColorHoverColor&c000000
ItemBorderColorSelectedColor&c000000
LockUpdateBooleanFalseSet to True when populating large amounts of items to defer drawing until you then set LockUpdate to False.
NotificationBGColorColor&c000000Background color of notification areas.
NotificationBGColorHoverColor&c000000
NotificationBGColorSelectedColor&c000000
ReverseScrollDirectionBooleanFalseWhen True, GraffitiDrillMenu will scroll in the direction signified by the mouse movement when dragging the virtual scrollbar.
RowHeightInteger45Height of each row.
ScrollOnDragBooleanTrueWhen True, the display can be scrolled by dragging with the cursor.
SelectedItemGraffitiDrillMenuItemNilThe currently selected item.
TextBoldBooleanFalseFont weight of items.
TextBoldHoverBoolean
TextBoldSelectedBoolean
TextColorColor&c000000Color of item text.
TextColorHoverColor&c000000
TextColorSelectedColor&c000000
TextFontString“System”Font face of items.
TextFontHoverString
TextFontSelectedString
TextItalicBooleanFalseWhen True, item text will be italicized.
TextItalicHoverBoolean
TextItalicSelectedBoolean
TextSizeInteger14Font size applied to item text.
TextSizeHoverInteger
TextSizeSelectedInteger
TextUnderlineBooleanFalseWhen True, item text will be underlined.
TextUnderlineHoverBoolean
TextUnderlineSelectedBoolean

Examples #

This class currently has no examples.

Notes #

This class currently has no notes.