12-14-2016 05:29 PM
The sequence I am editing contains a popup message with a response text box. At this point, the response text box is about 3" long, but the operator only inputs 1 digit. I've been asked to shorten the length of that text box, but it seems to me that the box automatically sets the length to fill up the width of the popup message window. I've looked through all the message box properties, but I don't see a way to decrease the length of that text box. Is there a way? Thanks.
Solved! Go to Solution.
12-15-2016 01:11 PM
You have the source code for the message box. You'd have to edit that and rebuild it. It is located in <TestStand>\Components\StepTypes\MsgBox folder. Looks like it is written CVI.
The other option is to create your own dialog using the language of your choice. You have more control this way and it won't impact all of TestStand.
Hope this helps,
12-15-2016 01:16 PM - last edited on 10-25-2024 03:42 PM by Content Cleaner
Hi diarmaede,
Unfortunately, the only configurable properties of the text box that are readily available to the user are as follows:
Step.ShowResponse—Enables the response text box control in the message popup dialog box.
Step.NumberLines—The number of visible text lines in the response text box.
Step.MaxResponseLength—The maximum number of characters the user can enter in the response text box control.
Step.RespFontData—The font for the response text box control in the message popup dialog box.
Step.DefaultResponseExpr—The initial text string the step displays in the response text box control.
Reference:
Message Popup Step
https://www.ni.com/docs/en-US/bundle/teststand-api-reference/page/tsref/message-popup-step.html
You are right that the message popup text box resizes to fill up the width of the popup message window, but the source code that defines the default message popup step in TestStand does not have an accessible property for the length of the message box.
The Message Popup step's CVI source code is actually shipped with TestStand and should be located on disk at <TestStand>\Components\StepTypes\MsgBox. You could technically alter this source code to affect the message popup steps, but it may be a little more laborious than it is worth.
Another option would be to create a custom popup dialog yourself (e.g. by using C# or LabVIEW) and use that instead of the Message Popup step.
12-15-2016 01:17 PM