Hi Evan,
You can bring up the dialog with the values of dMin, dMax shown inside the edit boxes as follows:
GETN_BOX(tr)
GETN_NUM(xmin, "Minimum m/z axis value", dMin)
GETN_NUM(xmax, "Maximum m/z axis value", dMax)
if( GetNBox(tr, "Specify m/z axis range") )
{
}
If on the other hand you want the value to be part of the string, you can do the following:
string strMin, strMax;
strMin.Format("Min m/z axis value (%5.2f)", dMin);
strMax.Format("Max m/z axis value (%5.2f)", dMax);
GETN_BOX(tr)
GETN_NUM(xmin, strMin, 0)
GETN_NUM(xmax, strMax, 2000)
if( GetNBox(tr, "Specify m/z axis range") )
{
}
Of course you can do both, in which case, the line would look like:
strMin.Format("Min m/z axis value (%5.2f)", dMin);
strMax.Format("Max m/z axis value (%5.2f)", dMax);
GETN_BOX(tr)
GETN_NUM(xmin, strMin, dMin)
GETN_NUM(xmax, strMax, dMax)
Easwar
OriginLab