Hi,<div><br></div><div>I was trying to use vtkScalarBarWidget,</div><div>and it took me a long long time to figure out how to enable the widget so I can drag it around.</div><div><br></div><div>I searched the mailing lists and internet for relevant questions, and found a dozen or more posts with the question,</div>
<div>but no answers.</div><div><br></div><div>From the scalarbar documentation, it looks like all you need to do is call</div><div>widget->SetRepositionable(1);</div><div>which isn't actually required because that is set on by default.</div>
<div>The only test for this class does not make the bar interactive.</div><div><br></div><div>The solution is that you need to read the vtkBorderWidget documentation, and call</div><div>widget->SetSelectable(1)</div><div>
<br></div><div>Then the widget will become interactive and you can drag it around, etc.</div><div>If you want to only be able to Resize it, then you call</div><div>widget->SetRepositionable(0);</div><div>but leave Selectable on.</div>
<div><br></div><div>I would like to see a note to that affect in the vtkScalarBarWidget documentation, in the SetRepositionable() method documentation.</div><div>If some simple comment was there, then it would've saved me quite some time.</div>
<div><br></div><div>Regards,</div><div>Paul</div><div><br></div>