GraffitiToolbar

Enumerations #

NameValues
AlignmentsLeft
Center
Right
BorderStylesDark
Light
White
Primary
Secondary
Info
Success
Warning
Danger
BorderTypesNone
All
Top
Right
Bottom
Left
NoTop
NoRight
NoBottom
NoLeft
ButtonStylesPrimary
Secondary
Success
Danger
Warning
Info
Light
Dark
Link
CornersNone
Rounded
Top
Right
Bottom
Left
Circle
DisableModesModeButton
ModeComponent
IconPositionsLeft
Top
Right
Bottom
TextStylesDark
Light
White
Primary
Secondary
Info
Success
Warning
Danger

Constants #

This class exposes no constants.

Events #

DefinitionDescription
Action( ClickedButton as GraffitiToolbarItem, mouseX as Integer, mouseY as Integer, buttonDimensions as REALbasic.Rect )Fired when the button is clicked.
ButtonEnter( theButton as GraffitiToolbarItem )Raised when the mouse enters the specified button.
ButtonExit( theButton as GraffitiToolbarItem )Raised when the mouse exits the specified button.

Methods #

DefinitionDescription
AddButton( newButton as GraffitiWebToolbarItem )Adds newButton to the toolbar.
Button( index as Integer ) as GraffitiWebToolbarItemReturns the button at the specified index.
ButtonCount() as IntegerReturns the number of buttons currently added to the control.
InsertButton( atIndex as Integer, newButton as GraffitiToolbarItem )Inserts newButton at the index supplied.
LastButton() as GraffitiToolbarItemReturns the last added/inserted button.
RemoveAll()Removes all buttons from the toolbar.
RemoveButton( index as Integer )Removes the specified button from the toolbar.
RemoveButton( theButton as GraffitiToolbarItem )

Properties #

NameTypeDefault ValueDescription
AutoDisableBooleanTrueWhen True, buttons will automatically be disabled when clicked and must be manually re-enabled.
AutoDisableModeDisableModesModeButtonThe method used for AutoDisable. When set to ModeComponent, the entire control will be disabled. ModeButton will disable only the Button that was interacted with.
ToolbarStyleWebSDKUIControl.IndicatorsDefaultBackground color of the toolbar.

Examples #

This class currently has no examples.

Notes #

This class currently has no notes.