Jump to content

Prevent numeric increment/decrement buttons from incrementing by 10, 100...

Recommended Posts

When the cursor in the numeric field of a numeric control is for example after the 10s/100s digit, the increment/decrement buttons have a step of 10/100. How can I prevent that? I always want a step of 1.

I tried setting the Data Entry Increment property to 1 but that did not change this behaviour..

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By Taylorh140
      So I have a serious question. Does LabVIEW have a way (built in or library) of calculating the next larger or next smaller floating point value.
      C standard library "math.h" has two functions:
      nextafter, and nexttowards.
      I have put together a c function: that seems to do the trick nicely for single floats (well only for stepup):
      #include <math.h> #include <stdint.h> uint32_t nextUpFloat(uint32_t v){ uint32_t sign; = v&0x80000000; if (v==0x80000000||v==0){ //For zero and neg zero return 1; } if ((v>=0x7F800000 && v<0x80000000)||(v>0xff800000)){ //Check for Inf and NAN return v; //no higher value in these cases. } sign = v&0x80000000; //Get sign bit v&=0x7FFFFFFF; //strip sign bit if(sign==0){ v++; }else{ v--; } v=v|sign; //re merge sign return v; } I could put this in labVIEW, but these things are tricky and there are some unexpected cases. So its always better to use a reference. 
    • By jgcode
      This package will be available for download through VIPM in a few days and covers some new VIs.
      [MOD] 3419758 - Create new Random Number Within Range - I32 VI
      [NEW] 3422921 - Add Timestamp Constant

      Kind regards
      Jonathon Green
      OpenG Manager
      I would also like to thank Ed Dickens for reviewing this package for release.
    • By Phillip Brooks
      This OpenG Review is closed.
      Based on Jim's suggestion in my post Select Random Array Indices, I submit this VI: 'Random Int Number - Within range'.
      The existing OpenG Random Number VI would presumably be renamed and added to a polymorphic VI.
      I chose I32 data types for compatibility with array indexing functions. The default values of one and zero allow this to be used with 'Not Equal to Zero?' to simulate a coin toss.

      Random Int Number - Within Range__ogtk.vi
      I was going to provide a link to the existing OpenG 'Random Number' documentation. A Google search found that Jim already submitted something similar to the old OpenG forums, see here. Jim mentions that the high and low are negatively biased and solves this by adding one to the high value and then rounding down.
      I think his is better. Rather than duplicate Jim's post and test code, is there a way we can import the discussion from the OpenG board to the LAVA board?
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.