GraffitiSearchCanvas

View Categories

Images #

About #

GraffitiSearchCanvas provides the backdrop and functionality of fields similar to those in the toolbar of the Xojo IDE.

Features:

  • 100% Xojo code, no external image resources
  • Fully controls the TextField assigned to it’s “Field” property
  • AutoComplete by Line or Word
  • Automatically draws using the colors of the Field

Enumerations #

Name Values
This class exposes no enumerations.

Constants #

Name Type Value
kModeLine Integer 0
kModeWord Integer 1

Events #

Definition Description
ClearClicked() as Boolean Return True to handle when the user clicks the clear icon, otherwise a default action will be taken.
DoSearch( SearchFor as String ) Perform a search for SearchFor.

Methods #

Definition Description
This class does not expose any methods.

Properties #

Name Type Default Value Description
AntiAlias Boolean True Sets whether the class is drawn antialiased.
AutoComplete Boolean False Determines whether the class will use the AutoCompleteValues to prompt with possible answers.
AutoCompleteMode Integer kModeLine Sets how the AutoComplete functions.
AutoCompleteValues() String Nil The values to use for AutoComplete functionality.
Field RectControl Nil The TextField to “commandeer” for search functionality. GraffitiSearchCanvas automatically uses AddHandler to implement all functionality.
ShowClearButton Boolean True Determines whether the x button is visible in the display.
ShowMagnifyingGlass Boolean True Determines whether the magnifying glass icon is visible in the display.

Notes #

Do not implement the KeyDown or TextChanged events of the TextField that you couple with GraffitiSearchCanvas. GraffitiSearchCanvas automatically handles those events for its functionality.