Sign Up

IG AutoComplete by Illuminated G - Toolkit for LabVIEW Download

A tiny autocomplete search UI for string controls that can work as a popup or using an existing ListBox

D Discussion Watch * 2 ↓255
 screenshot
Version1.5.0.10
ReleasedOct 24, 2023
Publisher Illuminated G
License MIT
LabVIEW VersionLabVIEW>=20.0
Operating System Windows, Mac, and Linux
Project links Homepage   Discussion

Description

Provides a minimal API (1 VI!) to create an autocomplete style text search where filtered results based on entered text is displayed. This can leverage it's own popup UI or it can be linked to an existing ListBox. Utilizing an existing ListBox is a workaround needed when playing around with the TopMostness of a UI that the built-in popup might not be able to be displayed in front of. The text searching will split on spaces and look for each search "word" in the options list.

The API at minimum accepts a reference to a string control used for the text input and a list of options as an array of strings. It provides a Selection user event that can be registered for to respond to user selections from the options.

Though it launches an async VI, it watches the calling VI's execution and closes down when the original calling hierarchy stops so that abort will work as expected and not leave an orphaned async VI running. To prevent a buildup of events and orphaned handlers in a VI that can be repeatedly run, the Stop event returned from the Launch AutoComplete Handler VI should be fired (the boolean value does not matter) to properly cleanup all resources.

See the examples for more specific usage info. A demo video can be watched at https://youtu.be/FoI_cr7KAGw

Release Notes

1.5.0.10 (Oct 24, 2023)

1.5.0.10
- Accept existing value instead of typed text when only different is text casing
1.4.0.9
- Add Replace Option method on Shared Options
1.3.0.7
- Add mechanism to share options among several instances of AutoComplete
1.2.0.6
- Add new API class to reduce the amount of references needed to be handled by the caller and provide clearer interactions.
- When not allowing undefined values, reverts to previous value when finishing a selection.
- Captures entries when losing focus instead of just hiding list.
- Put options starting with typed text first in the suggestion list.

derrickb and jacobson3 were contributors to this release


Download Package

Versions
All Contributors

  Post an Idea   Post a Resource

Recent Posts