TextBox

Description

A combination control that holds a label on the left with a text field on the right.

Keys


  • Label – Display text for label field
    • This value can be excluded to have just the Text Box
  • LabelWidth - double value representing the percentage of the grid container the label will consume in the dialog
    • The label gets defined percent width of the dialog
    • The text field gets the leftover percentage width of the dialog
    • Default value is 50% of the grid is utilized by the label if this key is excluded
  • Value – Default value for the text field
  • ValueType – the data type for the value
    • String
    • Int
    • DoubleUnit
    • DoubleNoUnit

Return


["ControlID"]["Value"] - key value of the return table from the dialog which contains the contents of the text box.

Example


data = { ControlID="CenterX", ControlType="TextBox", Label="X", Value=1.0*25.4, ValueType="DoubleUnit" }


The return data can be accessed from (assuming the dialog return variable is named retTable ):

       retTable["CenterX"]["Value"] = the data entered by the user