Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69329

Disable Control Display Format while user is entering data

$
0
0

Hi all,

I have a control with display format %#0fmL

My goal is to hide the mL when the user is entering data.

I noticed that controls seem to automatically convert any known SI Unit within the control itself, meaning 80m gets converted to .08
I was told we do not want to use the built-in SI unit label for the control for aesthetic reasons. For my case the SI unit label is only for visuals.

Because the conversion happens on the control level, I am having trouble manipulating it afterwards.

As a solution, I decided to restrict the accepted keys to numbers, arrows, enter, del, return.
Then add some cases to catch common cases.


The problem I have is that when a user:
1) Mouse down on control
2) Changes the value of control (Does not hit enter AND mouse stays within control)
3) Mouse down on control (without ever leaving control)

The value gets reverted back to the original value.
Is there a way to manipulate this so that I can keep the new, but not entered value?
If there is an easier solution, please let me know as I am relatively new to LabVIEW.
Thank you in advance!

 


Viewing all articles
Browse latest Browse all 69329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>