LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

uir editor: how to move a group of controls?

When I select a group of controls, I'm able to change their coordinates through Arrange >> Control Coordinates. In this way I can set an absolute value for the coordinates: for example left value to 120 px for all of them.

But is there a way to set a relative value for all the controls? i.e. if I want to move all the controls 30 pixel on the left, is there a way to specify -30 px for the horizontal position? And +30 to move them 30 px to the right?

I know I can move the controls with the arrows and the ALT+arrows, but this is a long operation if I want to move them, for example,400 pixels or more

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 6
(3,813 Views)

I'm not aware of a way do to that: let's see if anybody can help you in this respect.

 

This could be a good item to post to NI product suggestion center



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 6
(3,810 Views)

i had the same problem and resorted to move my controls one by one in the "arrange/controls coordinates" dialog, using my calculator to compute new positions. quite cumbersome. however, i don't know any user interface editor which has this feature.

 

there is still one convoluted solution: export the uir in text format (when editing the uir, in the "options" menu), process the file using your best text editor with a macro to move the controls you want, then re-importing the .tui into cvi...

 

this would definitely makes a good suggestion: a "move control group" dialog. same for the size: adding 20 pixels to the width or height of all selected controls, had to do this once...

0 Kudos
Message 3 of 6
(3,802 Views)

I'm probably missing something obvious, but if you guys want to move a group of controls by the same offset, wouldn't it be easier to just group-select them in the editor and then use the arrow keys to move them? Each press of a key moves them by 10 pixels, and if are holding down the <Shift> key they move by a single pixel.

 

Luis

0 Kudos
Message 4 of 6
(3,727 Views)

Hi Luis,

I know I can do it (see my first post), but if you want to move these controls 437 pixels to the right (for example) you have to press arrows too many times (my personal opinion)

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 5 of 6
(3,714 Views)

Vix:

 

Here's another feature that's still not quite the answer you were looking for.

 

If you want to move the group of controls in just one direction (either vertically or horizontally), keep the shift key pressed after you select the group of controls, and move them with the mouse.  The first direction you move, either vertically or horizontally, will be the only direction allowed.  You won't be able to move diagonally.  So your alignment of the controls being moved with respect to other controls will stay the same in one direction and will change in only one direction.

0 Kudos
Message 6 of 6
(3,700 Views)