TextWindow::DrawJudgeText

Displays judgement result in the Detail Result Display window

int DrawJudgeText(
   int  judge
)

Parameters
judge
judgement result to be drawn

Return Value
Returns 0 when the judgement result is successfully displayed.
Otherwise returns a non-zero value.

Description
Draws the judgement result string based on the specified judgement result in the Detail Result Display window.
A line break is always inserted after the drawing.
Examples of the displayed strings are shown below. (the strings enclosed with ""):
1 (JUDGE_OK): "judgement: OK"
-1 (JUDGE_NG): "judgement: NG"
0 (JUDGE_NC): "judgement: unmeasured"

Example
   int Sample::MeasureDispT(ProcUnit *ptrProcUnit, int subNo, TextWindow *ptrTextWindow)
    {

        // Display the judgement result

        ptrTextWindow->DrawJudgeText(ptrProcUnit->GetUnitJudge());
    }