GraffitiWindowNotifier

View Categories

Images #

About #

GraffitiWindowNotifier gives you the power to display notifications inside your application’s individual windows with smooth animations, easy interaction, and timed display.

Uses the popular GraffitiNote for display items, so instantiation is easy and notifications are flexible.

Enumerations #

NameValues
PositionsTopLeft
TopCenter
TopRight
BottomLeft
BottomCenter
BottomRight

Constants #

This class exposes no constants.

Events #

DefinitionParametersReturn TypeDescription
NoteHiddennote as GraffitiNoteNoneRaised when a note’s hide animation has completed.
NoteLinkPressednote as GraffitiNote
index as Integer
content as String
NoneRaised when the user pressed a link within the note. Second and third parameters indicate the link pressed.
NotePressednote as GraffitiNoteNoneRaised when the user has clicked a note.
NoteShownnote as GraffitiNoteNoneRaised when a note’s show animation has complete.

Methods #

DefinitionParametersReturn TypeDescription
Addnote as GraffitiNoteNoneAdds and displays a new Note. Pass zero to visibleTime to keep a note visible until closed or any other value to have the note hide after that period, in milliseconds.
visibleTime as Integer
Createtype as GraffitiNote.NoteTypes
title as String
text as String
GraffitiNoteCreates a new GraffitiNote for use with this class.
IndexOfnote as GraffitiNoteIntegerReturns the position of the specified note within the internal array.
LastIndexNoneInteger Returns the note at the last index in the class’s internal array. Usually the last shown.
Noteindex as IntegerGraffitiNoteReturns the note at the specified index.
Removenote as GraffitiNoteNoneRemoves the specified note by initiating its close process. 
RemoveAllNoneNoneRemoves all notes.
RemoveAtindex as IntegerNoneRemoves the note at the specified index by initiating its close process. 
ResizeNoneNoneShould be called the parent Window has been resized to reposition notes.

Properties #

NameTypeDefault ValueDescription
AnimationTimeInteger500Time, in milliseconds, that note operations are animated.
EasingGraffitiAnimator.EasingsGraffitiAnimator.Easings.LinearEasing to apply to animations.
MarginInteger10Pixel distance around the outside edge of notes.
PositionPositionsPositions.TopLeftLocation of notes.
ShowCountInDockBooleanTrueWhen True, the dock icon will be updated with a count badge on macOS.

Examples #

Instantiating and Displaying a Notification #

var note as new GraffitiNote
note.AllowFocus = True
note.Width = 275
note.Height = 35
note.Title = "Info"
note.Content = "Test Notification"
note.CloseButton = True
note.Type = GraffitiNote.NoteTypes.Information
note.Style = GraffitiNote.NoteStyles.NoBar
 
GraffitiWindowNotifier1.Add( note )

Notes #

This class currently has no notes.