GraffitiTour

View Categories

Preview #

About #

GraffitiTour is a beautifully animated and powerful user training assistant that allows you to create a guided tour of your application’s interface.

Enumerations #

NameValues
AnimationStylesFade
SlideUp
SlideDown
SlideLeft
SlideRight
Grow
Reveal
RollHorizontal
RollVertical
WindowShade
Doors
None

Constants #

This class exposes no constants.

Events #

NameParametersReturn TypeDescription
CancelledNoneNoneRaised when the user has ended the tour prematurely by clicking the close button on a tour card.
EndedNoneNoneRaised when the user completed the entire tour and clicked the “Done” button.
ItemPresseditem as GraffitiTourItemNoneRaised when the user has pressed on the current step’s card.
LinkPresseditem as GraffitiTourItem
index as Integer
content as String
NoneRaised when the user has pressed a link on the current step’s card. index is the index of the link within the item’s card. content is the text of the pressed link.
MovedNextNoneNoneRaised when the user moves to the next step in the tour.
MovedPreviousNoneNoneRaise when the user has moved to the previous step in the tour.
Paintg as GraphicsNoneRaised when the backdrop of the tour is redrawn.
StartedNoneNoneRaised when the tour has started and the first step is fully shown.

Methods #

NameParametersReturn TypeDescription
Additem as GraffitiTourItemNoneAdds a new step to the tour.
AddAtindex as Integer
item as GraffitiTourItem
NoneAdds a new step to the tour at the specified index.
AddMultipleitems() as GraffitiTourItemNoneAdds multiple new steps to the tour.
AddMultipleParamArray items as GraffitiTourItemNoneAdds multiple new steps to the tour.
ConstructorNoneNoneCreates a new tour instance. Window property must be set for Tour to operate.
Constructorwindow as DesktopWindowNoneCreates a new tour instance for the specified window.
ItemAtindex as IntegerGraffitiTourItemReturns the item at the specified index.
LastIndexNoneIntegerReturns the index of the last step in the tour.
MoveNextNoneNoneMoves to the next step in the tour.
MovePreviousNoneNoneMoves to the previous step in the tour.
RemoveAllNoneNoneRemoves all steps from the tour.
ResetNoneNoneResets the tour state to the default.
ResumeNoneNoneResumes a cancelled tour.
StartNoneNoneStarts the tour from the first step.
StartAtindex as IntegerNoneStarts the tour at the specified index.
StopNoneNoneCancels the current tour.

Properties #

NameTypeDefault ValueDescription
Active (Read Only)BooleanFalseReturns True when the tour is in progess.
AllowCloseBooleanTrueDetermines whether tour cards will display a close button.
AnimationEasingGraffitiAnimator.EasingsGraffitiAnimator.Easings.LinearEasing to use for animating card transitions.
AnimationLengthInteger250Length, in milliseconds, of animation operations. Movement between cards is two animations (in and out), so between cards would be a length of AnimationLength * 2.
AnimationStyleAnimationStylesAnimationStyles.FadeStyle applied to cards for animations.
BorderRadiusInteger10Corner radius of step cards.
ButtonsVisibleBooleanTrueWhen False, Next/Previous buttons will not be visible. Useful for timed progression or highlighting a single object in the user interface.
CaptionDoneString“Done”Text to display in the right-most button of the last card in the tour.
CaptionNextString“Next”Text to display in the left button of the last card in the tour.
CaptionPreviousString“Previous”Text to display in the left button of the tour when there are steps remaining.
CurrentStepInteger0Current step in the tour regardless of active state.
IsAnimatedBooleanTrueAlternative to AnimationStyle.None that may be used to disable animations. Some underpowered systems may have issues with animations in UI, or users may not desire excessive screen motion, so you may wish to provide a setting to disable animations.
OverlayColorColorGroupNilColors applied to the backdrap, overrides default transparent color.
OverlayNextOnClickBooleanFalseWhen True, clicking the modal backdrop will progress the tour to the next step.
StepTextFormatString“{current} of {max}”Format applied to card step text. {current} token equals the current index plus one, {max} token equals the last index plus one.
WindowDesktopWindowNilRead only once set (either directly or via the Constructor). The parent window of the tour.

Examples #

Creating a New Tour #

tour = new GraffitiTour( self )

var steps() as GraffitiTourItem
steps.Add( new GraffitiTourItem( buttonStart, "Start Button", "You clicked this to start the tour!" ) )
steps.Add( new GraffitiTourItem( buttonStartAt, "StartAt Button", "Starts the tour a specified index. In this case, 1." ) )
steps.Add( new GraffitiTourItem( buttonResume, "Resume Button", "When a tour is cancelled by clicking the close button, you can resume it by calling the Resume method." ) )
steps.Add( new GraffitiTourItem( buttonReset, "Reset Button", "Call this method to cancel any currently running tour and reset the start point to 0." ) )
steps.Add( new GraffitiTourItem( menuAnimationStyle, "Animation Style", "There's a long list of great looking animations to choose from. Each card will animate in and out." ) )
steps.Add( new GraffitiTourItem( cardNoButtons, "A Card", "This is just a card with no buttons to show drawing." ) )
steps.Add( new GraffitiTourItem( cardSingleButton, "Another Card", "This one has a single button and is used as a point of comparison for drawing." ) )
steps.Add( new GraffitiTourItem( cardBottomButton, "Vertical Repositioning", "Just to show vertical repositiong and another way to use the GraffitiTourCard." ) )

tour.AddMultiple( steps )