Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Slide Control Range Inclusive?

The documentation (and property names themselves) imply the range min and max values are inclusive so shouldn't I be able to set the value, range min and range max the same? From a numeric standpoint, this is a legitimate situation but the control throws an error if I try to do this. I have a real world application where an instrument allows [min <= value <= max] and I would like the control to perform the same as the instrument.

 

I'm using VB.NET 2012 and Measurement Studio 2013. I vaguely remember Measurement Studio VB6 let me set the range  min and max the same but had a quirky side effect.

0 Kudos
Message 1 of 5
(5,599 Views)

Hi ray_martin,

 

Is their a specific reason or use case (other than just matching the device's specs) that you are trying to design for? Any background on what you are trying to accomplish would help, as the solution should be tailored to the desired outcome. In general, the values cannot be set equal because these values are used to generate the UI for the slider.

Evan See
National Instruments
0 Kudos
Message 2 of 5
(5,574 Views)

The instrument allows a super user to configure the range of specific values. In some cases, they only want a regular user to use a fixed value so they set the range min/max the same. In other words, these 3 properties can be used to accomplish a secondary operating mode. In reality though, setting all 3 values the same is simply the boundary condition of the basic behavior (i.e. min<=value<=max) and not a special case.

0 Kudos
Message 3 of 5
(5,571 Views)

One way the Slide control could visually present the situation where the range min and max are the same is the pointer would expand to fill the full width (or height depending on orientation) of the control. That way, the user would see the pointer doesn't have any room to be dragged since it extends to the ends (full range).

0 Kudos
Message 4 of 5
(5,560 Views)

You might want to disable the control when in the standard mode and use an override value. Then enable the control when in Super User mode.

 

http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/keynetnumericeditfeatureswinf...

 

The interaction mode property can be set based on the user mode.

Evan See
National Instruments
0 Kudos
Message 5 of 5
(5,554 Views)