The BreadcrumbNavigator QControl Code can be found here:
BreadcrumbNavigator QControl.zip
The QControl Toolkit is required to use this and can be found here:
The QControl Toolkit on LabVIEW Tools Network
Overview
For this QControl I had a need to mimic breadcrumb navigation similar to that found in a webpage. This QControl modifies a string control to display the elements. For those that don't know what breadcrumb navigation is, it is the history trail of where you have been (like Hansel and Gretel leaving a breadcrumb trail). It allows the user to return to any given point.
This QControl allows a developer to add items, change the delimiter (should be done at the start but default is the colon), and fires a user event when clicked so the user can handle the actual navigation.
This QControl allows a developer to add items, change the delimiter (should be done at the start but default is the colon), and fires a user event when clicked so the user can handle the actual navigation.
To add an element, don't write to the strings value; instead use the AddString Property. The items will appear underlined just like a link on mouseover. On mouse click a user event is generated giving the selected string and the BreadcrumbNavigator QControl truncates the list to the clicked item.
See the included tester VI for implementation details.
Comments
Post a Comment