Hello again,<br><br>I&#39;ve browsed the code, and found this definition of GetShadowColor:<br><br><div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">void vtkTextProperty::GetShadowColor(double color[3])</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">{</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#if 1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  double average = (this-&gt;Color[0] + this-&gt;Color[1] + this-&gt;Color[2]) / 3.0;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">#else</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  double average = (0.30 * this-&gt;Color[0] + </span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">                    0.59 * this-&gt;Color[1] + </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                    0.11 * this-&gt;Color[2]);</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">#endif</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  <b>double shadow_i = average &gt; 0.5 ? 0.0 : 1.0;</b></span><b><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  color[0] = color[1] = color[2] = shadow_i; </span></b><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">}</span><br></div>

<br>From this code looks like we can infer that the &quot;shadow color&quot; is computed from the &quot;text color&quot; (ie. from the <span style="font-family: courier new,monospace;">vtkProperty::Color[] </span>attribute), that it becomes just black or white, and there is no way to &quot;change&quot; it, as far as I understand.<br>

<br>Regards,<br><br>Frederic Perez<br><br><div class="gmail_quote">On Thu, Jan 14, 2010 at 4:24 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">On Thu, Jan 14, 2010 at 10:06 AM, Frederic Perez &lt;<a href="mailto:fredericpcx@gmail.com">fredericpcx@gmail.com</a>&gt; wrote:<br>


&gt; Hello David,<br>
&gt;<br>
&gt; probably the key is to retrieve the properties of the text associated with<br>
&gt; the slider and modify it (with ShadowOff).<br>
&gt;<br>
&gt; I found this code of mine---perhaps it might help, I&#39;m not sure:<br>
&gt;<br>
&gt;     void<br>
&gt;     SetSomeTextProperties(<br>
&gt;         vtkTextProperty* a_pTextProperty,<br>
&gt;         size_t a_nTextSize,<br>
&gt;         double a_d3TextColor[3])<br>
&gt;     {<br>
&gt;         if (!a_pTextProperty)<br>
&gt;             return;<br>
&gt;         a_pTextProperty-&gt;SetFontFamilyToArial();<br>
&gt;         a_pTextProperty-&gt;BoldOff();<br>
&gt;         a_pTextProperty-&gt;ItalicOff();<br>
&gt;         a_pTextProperty-&gt;ShadowOff();<br>
&gt;         a_pTextProperty-&gt;SetFontSize(a_nTextSize);<br>
&gt;         // &#39;- Fails to work (?).<br>
&gt;         //    See <a href="http://markmail.org/message/xyx2y7cdwuj3aw55" target="_blank">http://markmail.org/message/xyx2y7cdwuj3aw55</a><br>
&gt;         a_pTextProperty-&gt;SetColor(a_d3TextColor);<br>
&gt;         a_pTextProperty-&gt;SetJustificationToCentered();<br>
&gt;         //a_pTextProperty-&gt;SetVerticalJustificationToCentered();<br>
&gt;     }<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Frederic Perez<br>
&gt;<br>
&gt; On Thu, Jan 14, 2010 at 3:57 PM, David Doria &lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; To change the font color of a slider, I found to do this:<br>
&gt;&gt; sliderRep-&gt;GetTitleProperty()-&gt;SetColor(1,0,0);//red<br>
&gt;&gt;<br>
&gt;&gt; However, as this example demonstrates:<br>
&gt;&gt; <a href="http://www.cmake.org/Wiki/VTK/Examples/Widgets/Cxx/Slider2D" target="_blank">http://www.cmake.org/Wiki/VTK/Examples/Widgets/Cxx/Slider2D</a><br>
&gt;&gt;<br>
&gt;&gt; there is a white outline around the red text:<br>
&gt;&gt; <a href="http://www.rpi.edu/%7Edoriad/VTK_List/slider.jpg" target="_blank">http://www.rpi.edu/~doriad/VTK_List/slider.jpg</a><br>
&gt;&gt;<br>
&gt;&gt; Anyone know how to remove the outline and simply make the text red?<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt;<br>
&gt;&gt; David<br>
<br>
</div></div>Ah, that did the trick, thanks Frederic.<br>
<br>
However, in vtkTextProperty, I see GetShadowColor(), but no<br>
SetShadowColor(). Is there a way to change the shadow color to a color<br>
that makes sense rather than simply turn it off?<br>
<div><div></div><div class="h5"><br>
Thanks,<br>
<br>
David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br>