11-16-2006 12:53 PM
12-11-2006 07:23 AM
Hi,
With regards to the pointers on the CWKnob control, this was reported to R&D (# CAR 44A4POW3) for further investigation.
R&D is currently investigating this issue.
As far as making the labels dissappear, you can do this using ValuePairs (for every major tick, you need to put in a value pair) :
// Specify the axis range and tick spacing for the CWSlide control.// Add a value pair to indicate a point along the axis value range on the CWSlide control.
CNiValuePair vpair2 = m_knob_control.Axis.ValuePairs.Add();
// Specify the value pair text.
vpair2.Name = "5";
// Specify the axis value with which to associate the value pair.
vpair2.Value = 5;
// Add a value pair to indicate the high end of the axis value range on the CWSlide control.
CNiValuePair vpair3 = m_knob_control.Axis.ValuePairs.Add();
// Specify the value pair text.
vpair3.Name = "10";
// Specify the axis value with which to associate the value pair.
vpair3.Value = 10;
// Specify that the value pairs are associated with the axis values and that the labels are visible.
m_knob_control.Axis.ValuePairs.Location = CNiValuePairs::LocationValue;
// decide if we're showing the labels or not (so Value here is just a boolean flag I was using - obviously you don't need this if you're setting it permanently off)
if (Value)
m_knob_control.Axis.ValuePairs.LabelType = CNiValuePairs::LabelNone;
else
m_knob_control.Axis.ValuePairs.LabelType = CNiValuePairs::LabelName;
The third issue of the NiNumEdit dropping it's 3D style border when re-drawing - do you have a small project to demonstrate this?
Thanks
Sacha Emery
National Instruments (UK)
12-14-2006 03:21 AM
Another option (thanks to BilalD for this one)
CWKnob1.Axis.Labels.Radial = False;
Specifies if the system draws radial labels
Note This property is valid only when the axis is radial, such as a
You keep the minor ticks, and don't need to use value pairs to acheive it at all (as opposed to the previous post)
Thanks
Sacha Emery
National Instruments (UK)