08-14-2014 01:54 PM
This is one of those "how in the world did I not know this?" nuggets. During a code review yesterday, one of my colleagues asked me to make an LED bigger on the panel of a VI. After my resize attempt, the LED was oval-shaped, to which my colleague remarked, "You know, you can shift-drag to resize objects proportionally in both directions".
How cool is that? From what I can tell, you can do a shift-drag-resize on any object that can resize in multiple directions, including objects on the block diagram. Remember this nugget whenever you're resizing an object and you want it to keep the original height/width ratio at its new size.
08-14-2014 02:03 PM
This mouse-key combination seems to be some kind of a standard. It works in some other applications as well.
08-14-2014 02:09 PM
Ctrl-drag-resizing is also very useful, keeps the center position.
Shift-Ctrl-drag resizing keeps it centered and circular.
08-14-2014 02:17 PM
Why isn't this sort of thing DOCUMENTED! Surely I should be able to find these shortcuts without having to read a blog. BUT THANKS FOR THE TIP!!
08-14-2014 02:28 PM
@georgewbush wrote:
Why isn't this sort of thing DOCUMENTED! Surely I should be able to find these shortcuts without having to read a blog. BUT THANKS FOR THE TIP!!
http://www.ni.com/pdf/manuals/373353c.pdf
They seem to have stopped shipping this with LV, much more useful IMO than the stickers....
08-14-2014 02:35 PM
Well, depending on where you look, it is documented.
08-14-2014 03:09 PM
Not a NI web site. But thanks for the link!
08-14-2014 03:12 PM
The shift-resize thing is fairly standard in graphics editors. Some keep proportions, others snap to square (0/45/90 for lines/squres/etc in the tools I use) with that modifier key.
Knew about the shift-key thing, but I like the ctrl-shift thing. I can see myself using that a lot.
08-14-2014 10:52 PM
AWESOME!
08-15-2014 02:00 AM
For those who use Vision Development Module, there's a similar trick for resizing a region of interest.
For instance, when moving a rotated rectangle, holding SHIFT snnaps to modulo 45° angles.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus