DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Dialog Box Edit Box

I have created a SUD where the user can define the a group index to perform an action on. What I would like to do is change what the default text is in that box, e.g.: "Enter Group Index".

 

Also, I was able to get the text entry in the box centered from left to right, but how can I center top to bottom of the entry box?

0 Kudos
Message 1 of 4
(2,311 Views)

Hi Brian!

 

From the SUD Dialog Box Editor, you should be able to click the TextEdit object. In the Properties pane, you should be able to set the Text field to be your default string (Enter Group Index, etc). I attached a screenshot of what this looks like from a simple dialog box. Then you could use the link below to update the value and pass it back to DIAdem.

 

Transferring User Dialog Box Entries to DIAdem: http://zone.ni.com/reference/en-XX/help/370858N-01/procsud/procsud/procsud_variables/

 

As for alignment, I was also only able to align horizontally, not vertically. Is there a specific reason your text needs to be centered vertically in the EditBox?

 

 

Best,

Chris D. | Applications Engineer | National Instruments

0 Kudos
Message 2 of 4
(2,282 Views)

Setting the text properties of the edit box did not show the text string when the dialog box is used. What I had to do was set the global variable to the string that I wanted.

 

I wanted the vertical alignment to be on center because it looks nicer.

0 Kudos
Message 3 of 4
(2,246 Views)

Hi Brian,

 

I found that there is a vertical alignment property for the Text object (like a label) but not the EditBox object. I'm not sure on the why, but I don't think there is a way to set the vertical alignment of the EditBox. This isn't a bug or unexpected behavior, but I created CAR 708066 with our DIAdem R&D team. If this CAR is implemented in the future, you'll see the CAR number in the Release Notes under "Corrected Errors in DIAdem 20XX" similar to the DIAdem 2018 Release Notes.

 

Best,

 

Chris D. | Applications Engineer | National Instruments

0 Kudos
Message 4 of 4
(2,239 Views)