For some reason when I am setting the format of a text field (value read from a DP as a float), to the format of the DP, the text box size increases.
Example:
I am setting the value and the format to my text field.
When pressing the button above this is the code:
Code: Select all
main(mapping event)
{
string DP = dpSubStr(dollarP_DP+"."+dollarP_DPE, DPSUB_SYS_DP_EL);
string sFormat = dpGetFormat(DP);
setValue("text_indicator", "format", sFormat);
DebugN(DP,sFormat);
}