LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Thoric

Use CTRL+Shift whilst dragging to copy horizontally / vertically

Status: Declined
This feature already exists in LabVIEW

Whilst developing code I often need multiple copies of a subvi on my block digram. I create my duplications by click-dragging with CTRL pressed, which creates a copy. To make sure the copy is aligned horizontally with the original I'm forced to look for the little 'delta' box that appears somewhere randomly on the screen (see image). To make sure the copied subvi is perfectly aligned I have to ensure the second coordinate is zero, indicating no movement in the vertical direction, and then I know my error wire will pass neatly across to the copy, as will any other data wires that pass right through the subvi. This is ok, but sometimes it needs the tiniest movements of the mouse to get it positioned pixel perfect, which is tiresome.

 

In other programs it's quite typical to press both CTRL and SHIFT together and the motion of the copied item is restricted to either just horizontal or vertical movements. I believe this would be ideal in LabVIEW for the creation of multiple copies of subvis/functions/primitives on the block diagram, all perfectly aligned horizontally/vertically. My snapshot below shows just a fraction of a lengthy vi I have for importing various datas from an encoded file. There are quite a few copies of the PCC Open subvi and each one had to be carefully copied - with CTRL+Shift I could have created them all much more easily.

 

17939i541981611E5782B8

Thoric (CLA, CLED, CTD and LabVIEW Champion)


13 Comments
Intaris
Proven Zealot

Er, this works already quite well for me......

 

I use this all the time.

AristosQueue (NI)
NI Employee (retired)

Try pressing the shift key before you start dragging the object. If you hit shift after you start the drag, the feature does not apply.

This feature exists at least as far back as LabVIEW 6.0 (I did not check further back).

 

JackDunaway
Trusted Enthusiast

Intaris, how?!

 

I'm using LV2009 on Win7, and I cannot use CTRL+Shift to horizontally/vertically drag an object. Do you have an INI file setting, or an OS add-on?

 

More generically, I cannot even Shift+Drag to vertically/horizontally/45deg constrain a BD or FP object.

JackDunaway
Trusted Enthusiast

AQ - Post collision, and muchos_pseudo_kudos to you and Intaris.

 

Thoric, I'm going to jump in and give you a Kudos before Todd marks this Idea as 'Complete'. This is a feature I've been missing!

JackDunaway
Trusted Enthusiast

I've been playing with this "new toy" for all of 6 minutes now, and have already noticed it does not behave the same way as, for instance, MSPaint. Once you initiate a drag either horizontally or vertically, you cannot "change it" to the other - you are locked in that dragging orientation. Also, you cannot drag 45deg (not quite as big of a deal...)

Thoric
Trusted Enthusiast

My my my! So if you press Shift before you start dragging the icon, then start dragging, then press CTRL after (wihtout deselecting Shift), you can restrict it's movement. But if you press Shift after you start dragging, it doesn't work!? Hmm. In that case I'd like to adjust my Idea Exchange to:

"Alter the application of Shift key presses to restrict motion whether pressed before or after dragging a subvi"

 

Thanks for the tip Intaris & AQ!

Thoric (CLA, CLED, CTD and LabVIEW Champion)


JackDunaway
Trusted Enthusiast

Thoric, I agree with your change. Create a new Idea with that change, and please include the changes I requested if you agree. Go ahead and leave this Idea untouched for archival. You're certainly not the first to request a feature that's already been around for years, so hopefully posts as these help other users discover new features!

Thoric
Trusted Enthusiast

Jack,

 

Suggested adopted

 

🙂

 

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Todd S.
NI Employee (retired)
Status changed to: Completed
 
Todd S.
LabVIEW Community Manager
National Instruments
Intaris
Proven Zealot

@AQ, I did not know about the order of pressing Shift and Control.  Learn something new every day. 

 

After 15+ years of LabVIEW I would have to say I would have gone insane by now if I didn't already know that shift-control-drragging behaved the way it did