VI Analyzer Test - Limit to Single Line on Strings
The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!
Any single-line string on a user interface VI should have the "Limit to Single Line" option selected. Users will expect that pressing 'Enter' on a single-line string will commit the value, and not add multi-line content that they cannot see.
I propose a VI Analyzer Toolkit test that checks for this scenario called "Limit to Single Line on Strings". The test would return a failure under the following circumstances:
It is determined to be a user interface VI.
It has a string control set to the minimum possible height for one line of text.
That string control does not have the "Limit to Single Line" option selected.
If these conditions are met, the test would return a failure, and recommend the user enable the "Limit to Single Line" option on that string.