<div dir="ltr"><div>I followed this example to add a vtkTextWidget: </div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/TextWidget">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/TextWidget</a><div><br></div>
<div>Everything worked fine. However, the rectangular border lines are white by default. However, my render window has a white background color. So the white textWidget border is not visible. I tried to change the border line color into black with this statement:<br>
<div><div>textWidget->GetBorderRepresentation()->GetBorderProperty()->SetColor(0., 0., 0.);<br></div><div><br></div><div>But I kept getting this error message:</div><div>error C2039: 'GetBorderRepresentation' : is not a member of 'vtkTextWidget'<br>
</div><div><br></div><div>FYI, I am using vtk 5.8 and included the proper headers such as:</div><div><div>#include <vtkTextWidget.h></div><div>#include <vtkTextRepresentation.h></div><div>#include <vtkCoordinate.h></div>
<div>#include <vtkBorderRepresentation.h></div><div>#include <vtkBorderWidget.h></div></div><div><br></div><div>I'd like to have your assistance to change the color of vtkTextWidget border lines.</div><div>
<br></div><div>Thank you for your help,</div><div>John</div><div><br></div><div>  </div><div><br></div><div>  </div></div></div></div>