LabVIEW Idea Exchange

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

Move front panel elements by x pixels

Status: New

The various options for aligning, distributing and sizing the elements of a front panel are very useful.

 

Snap1.png

 

What I find lacking is the ability to move one or more elements according to a number of pixels.

An adaptation of the box for resizing would suit me very well.

 

Resize Objects.png  Move Objects.png

4 Comments
JimChretz
Active Participant

I'd rather make all propertie values shown/editable in a table like most IDEs.

 

01_Visual+Basic+Properties+Window

 

wiebe@CARYA
Knight of NI

I thought everybody made there own versions of that dialog by now 😁.

 

Yes, moving a selection (to top, bottom, left right), aligning a selection (to top, bottom, left right), growing a selection (to top, bottom, left right), shrinking a selection (to top, bottom, left right), this all has been very useful for me.

 

Of course it gets complicated, as you might want to align the left sides to the right most left, or the tops to the bottom top.

 

There's a lot more that could be done, for sure.

JB
Trusted Enthusiast
Trusted Enthusiast

In my opinion, if the idea succeeds, its implementation should allow the movement of several elements at the same time.

 

Take the example of resizing a graph of a front panel which requires moving a row of buttons down. My two current methods are :
1) Temporarily place a decoration or element of the size you want to move and use it to move the buttons with the existing alignment options.
2) Select the buttons to be moved and then press the down arrow key depending on the number of pixels! Gets tedious quickly when the move is large. Because of the alignment on the front panel grid, using the Shift key is usually not a help if an exact move is to be made.

 

How do you currently proceed?

 

wiebe@CARYA
Knight of NI

>How do you currently proceed?

 

That dialog is probably 99% pure LabVIEW code. There's a dll call (1%, in resource\dialog\Resize.llb\PosDims.PasteToTargets.vi) to size any object by it's ref...

 

Some scripting code is probably used to get the selection, handle the undo stack.

 

So, why not make your own scaling tool? Put it in Projects folder and it will appear in the Tools menu. This VI can do whatever you want.

 

For instance, my tool has buttons to move (L, R, U, D) the selected objects by 1 pixel on one of it's tabs... Growing, shrinking is on other tabs.