LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
P@Anand

Shift+Move needs proper pixel spacing between objects

Status: New

This one is more kind of a cleanup to the algorithm. 

 

In the Front Panel to move a set of objects pressing the arrow button or Mouse drag helps. But one more option to move the objects faster according the grid size is by Holding the shift key and using the arrow key to move. When observed the pixel distance between the object changes in the last method, which is not correct. So it would be great if this is fixed in the feature versions.

 

To understand the issue please do the following.

 

Place some controls on the front panel and select all and closely observe the space between each controls.

 

Shift+Move Correction-1.PNG

 

Try to move the objects to the left or right/up or down and you can see there is no change between the objects. Now Press shift and use the arrow keys and you can observer the pixel space between some of the objects are changing.

 

Shift+Move Correction-2.PNG

The distance between the Chart and the color box is atleast more than 1 grid space.

 

Shift+Move Correction-3.PNG

Here the pixel space between the chart and the color box is less than a grid size.

 

I am sure this is not an optical illusion. 🙂

-----

The best solution is the one you find it by yourself
28 Comments
GuenterMueller
Active Participant

For the time being you could switch off the Front Panel Grid when moving the objects using <Shift + Cursor>. Without the grid all objects move properly.

crossrulz
Knight of NI

The Shift+move forces an alignment to the grid.  So if you controls/indicators were not aligned to the grid, this will cause some of your spacing to change.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
P@Anand
Trusted Enthusiast

But is this what supposed to happen? The Shift+move is to allign objects with respect to the grids?

-----

The best solution is the one you find it by yourself
AristosQueue (NI)
NI Employee (retired)

This is intended behavior. This is not a bug. The shift+arrow keys is meant to keep things on grid boundaries.

Intaris
Proven Zealot

Group them before moving and all is good.

Darin.K
Trusted Enthusiast

Shift-Arrow should move objects by one grid interval. 

 

Objects on the grid stay on the grid.

Objects maintain their relative alignments.

Behavior is the same regardless of number of selected items, whether or not alignment is on or off, or any other state.

Darren
Proven Zealot
Status changed to: Declined

This is intended behavior. This is not a bug. The shift+arrow keys are meant to keep things on grid boundaries.

Intaris
Proven Zealot

@Darin, which object determines the grid alignment?

AristosQueue (NI)
NI Employee (retired)

> Shift-Arrow should move objects by one grid interval. 

 

Thank you for your opinion. Your opinion is not shared by other users. Internal alignments may be maintained by grouping, as noted by Intaris. Perhaps you might be one of those users who wants to enable the "Resize new objects to grid sizes" setting in Tools >> Options >> Front Panel?

Darin.K
Trusted Enthusiast

@Intaris -  Most drawing programs create a bounding box for the selected items, arrow presses move the top or left edge of the BBox to the next gridline, depending on horizontal or vertical movement.  The first step can be less than one grid space, the rest are one grid boundary.  This is a global move, relative spacing of the selected objects is maintained.  Grouping is inferred by selection, no need to group them explicitly.

 

I'd like to know if there are any graphics programs that would do what LV does with a multiple selection. MSoft does not do this, Adobe does not do this, Apple does not do this.  No program I have found jiggles the individual elements of the selection when moving with the arrows.

 

The grouping suggestion is interesting, NI does like to make me switch between the mouse and keyboard (shift-arrow is a two-hand operation for me).  It is especially nice when I have to stretch my FP to reach the menu which has the group option and shrink it back when I am done.   Ctrl-A Shift-click-click-click would so much nicer than the current alternative.