LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Way to select just control, not label or caption (for alignment)?

Hello,
 
Is there a way to select just the control portion of a control or indicator, and not the label or caption?  When I am aligning multiple controls (especially if they are different styles),  I find I have to shut off the Labels or captions to get the vertical alignment command to work properly, then turn them back on.......
 
I would like it to move the label or caption, just not take it into consideration when doing the alignment.  It must be using the bounding box to calculate the alignments?
0 Kudos
Message 1 of 9
(3,886 Views)
As far as I know that is the only way to align them.  But one of the Guru's might have a trick up their sleeve.
0 Kudos
Message 2 of 9
(3,876 Views)
I don't think there is a simple way, because there is a hierarchy. You can align the labels seperately, but you cannot align only the controls. This is probably good.
 
You should simply ensure that the labels are aligned with one of the edges of the control, for example most of my labels are right-aligned with the control. If you now align multiple such controls, also do a right-align and the labels will not interfere.
 
 
0 Kudos
Message 3 of 9
(3,857 Views)
I agree with Altenbach, but if you do want to this, you can. Here's a basic example.

___________________
Try to take over the world!
Message 4 of 9
(3,851 Views)

Yes, as I said "I don't think there is an easy way".

Cool VI though. 😄

0 Kudos
Message 5 of 9
(3,838 Views)


@tst wrote:
I agree with Altenbach, but if you do want to this, you can. Here's a basic example.


Ok, now you're just showing off......Smiley Very Happy

Thanks!

Message 6 of 9
(3,833 Views)
Cool concept!

I use the 'alignment code' in a case structure set to not execute (LV 7.1) instead of reference, because I that were more specific cases I used that. But one more general case is the 'SetWidth' of a ListBox for equal width of all coloumns...

Felix
0 Kudos
Message 7 of 9
(3,813 Views)

@tartan5 wrote:

Ok, now you're just showing off..


Actually, the point was that this can be converted into a usable tool if you really need it. It would just require some work.

___________________
Try to take over the world!
0 Kudos
Message 8 of 9
(3,809 Views)
So cool tst ! Smiley Very Happy
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 9 of 9
(3,783 Views)