LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Makeing Scales Not Editable

Hi there,
 
I have a user interface that I'm building into an application with application builder.
 
I have about a dozen Slider controls.  The problem is that they can currently be changed by the final user.  I'd like to have them fixed at 'compile' time.  I know I can do this programatically by dropping a property node for the slider and setting the scale/editable property to false... is there a simpler way to do this?
 
Thanks in advance for any responses.
 
Derek
0 Kudos
Message 1 of 11
(4,033 Views)

"Dereklogitech" <x@no.email> wrote in message news:1174999211590-497907@exchange.ni.com...
Hi there,
&nbsp;
I have a user interface that I'm building into an application with application builder.
&nbsp;
I have about a dozen Slider controls.&nbsp; The problem is that they can currently be changed by the final user.&nbsp; I'd like to have them fixed at 'compile' time.&nbsp; I know I can do this programatically by dropping a property node for the slider and setting the scale/editable property to false... is there a simpler way to do this?
&nbsp;
Thanks in advance for any responses.
&nbsp;
Derek



Sounds like the sliders should be indicators, not controls! You should consider to make them indicators. You can disable them by right clicking the control, and under Advanced, there is an item Enable State.


Regards,


Wiebe.
0 Kudos
Message 2 of 11
(4,028 Views)

Hi Wiebe,

Thanks for responding, I'm definitely wanting the sliders as controls.

In my application, I have a slider for setting a motor speed, so I set the scale and therefore the control to 10-100 rpm, the range for my motor.  I then build my application and deploy it. But the end user can clicking on the 100 and changing it to 200rpm. So it's the scale not the slider I want to fix at compile time.

Thanks.

Derek

0 Kudos
Message 3 of 11
(4,023 Views)


@Dereklogitech wrote:

So it's the scale not the slider I want to fix at compile time.

Thanks.

Derek



Hi Derek,

If U want the Scale, NOT the Slider, to be disabled, then that can done only programatically. There is no short-cut.

" Any object tends to take the shorest route possible between two points, which is always a STRAIGHT line necessarily. " - Newton.

So, we too ve to follow some straight procedure, instead of looking at short-cuts all the time... Smiley Wink

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 4 of 11
(4,016 Views)
The only thing I can think of, offhand, that you can do on the front panel is place a transparent decoration over the scale. The disadvantage of this is that in the future, if the scale needs to be changed, it could be a bit confusing for someone else that needs to edit it. Be sure to place some comments on the block diagram.
Message 5 of 11
(4,011 Views)

"So, we too ve to follow some straight procedure, instead of looking at short-cuts all the time... "

Ah yes... but we're engineers and scientists and we're always looking for the shortcuts Smiley Happy

Thanks for your response,  Property node's it is then. Don't mind not takeing the short cut, but I hate wondering if there was one Smiley Happy

 

Thanks again.

 

Derek

0 Kudos
Message 6 of 11
(4,010 Views)
You can also add a small filtering event structure that discards "key-down?"  and "key repeat?" on the slider controls. You can still operate the control with the mouse, of course..

Message Edited by altenbach on 03-27-2007 08:52 AM

0 Kudos
Message 7 of 11
(4,002 Views)

"Dereklogitech" <x@no.email> wrote in message news:1175004611975-497972@exchange.ni.com...
Hi Wiebe,
Thanks for responding, I'm definitely wanting the sliders as controls.
In my application, I have a slider for setting a motor speed, so I set the scale and therefore the control to 10-100 rpm, the range for my motor.&nbsp; I then build my application and deploy it.&nbsp;But the end&nbsp;user can clicking on the 100 and changing it to 200rpm. So it's the scale not the slider I want to fix at compile time.
Thanks.
Derek


Sorry about that. At least it got the party started!
0 Kudos
Message 8 of 11
(3,984 Views)

"Dereklogitech" <x@no.email> wrote in message news:1175006413902-498008@exchange.ni.com...
"So, we too ve to follow some straight procedure, instead of looking at short-cuts all the time... <img height="16 src= http://forums.ni.com/i/smilies/16x16_smiley-wink.gif" width="16" border="0">"
Ah yes... but we're engineers and scientists and we're always looking for the shortcuts Smiley Happy
Thanks for your response,&nbsp; Property node's it is then. Don't mind not takeing the short cut, but I hate wondering if there was one Smiley Happy
&nbsp;
Thanks again.
&nbsp;
Derek


You can make it a bit easier if you have a lot of them. You can get all controls from your front panel, and check for each control if it's class is a "slide". If it is, you can disable the customisation of the scale... You can do this once, or each time the application starts.


Regards,


Wiebe.
0 Kudos
Message 9 of 11
(3,985 Views)

My eventual solution was just to connect all the sliders property nodes together and make them false. 

Thanks to all that responded.

 

D

0 Kudos
Message 10 of 11
(3,979 Views)