Highlight region color conditional to the results
Highlight region color conditional to the results
(OP)
Hi, I would like to know if it is possible in Mathcad to highlight a region to a different color depending on the result.
ie: IF "condition is true" (highlight region would be green)
IF "condition is false" (highlight region would be red)
Thanks.
ie: IF "condition is true" (highlight region would be green)
IF "condition is false" (highlight region would be red)
Thanks.





RE: Highlight region color conditional to the results
David
RE: Highlight region color conditional to the results
RE: Highlight region color conditional to the results
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Highlight region color conditional to the results
but unfortunately doesn't print it. MathCAD needs to fix.
the VB script that controls the display of Text Box 2
Sub TextBoxEvent_Exec(Inputs,Outputs)
If Inputs(0).Value > Inputs(1).Value And Inputs(0).Value < Inputs(2).value Then TextBox.BackColor = vbGreen
TextBox.Text="GOOD"
Else
TextBox.BackColor=vbRed
TextBox.Text="BAD"
End If
End Sub