Jump to content

The ability to adjust a numeric value by dragging the mouse


Recommended Posts

@thols, it's doable, I may do it for further fun ;)

@ShaunR, nah, just event structure and Input Device Control pallete. Attached the LV8.5 version if you want to take a look. Implementing it in XControl would be cumbersome as it needs to pool the mouse continously. (Plus I removed XControls entirely from my "technology toolbox" a long time ago, together with tons of problems they cause).

DragNumeric.vi

Link to comment

I usually """solve""" this kind of thing with placing a full-window transparent control over everything and showing it on mouse down and hiding on mouse up event. Fails miserably with multi-pane front panels and have to be extra careful for z-order.

Quick n dirty, the way I do LV.

Link to comment
1 hour ago, PiDi said:

Plus I removed XControls entirely from my "technology toolbox" a long time ago, together with tons of problems they cause

I know what you mean. I have the same view about ActiveX and .NET. But XControls aren't as bad as those technologies and, although a lot of work to make them robust, they are worth it is some scenarios.

 

 

image.png.831bfd72cca564b10b311c90c7c516e7.png

Link to comment

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...

Important Information

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