06-18-2013 02:48 AM
Imagine I have some controls on the panel in such a way (see figure).
I would like to be able to copy the entire format (colors, font sizes, alignment, etc...) from control A to the other controls.
Is the a way to do it witha single command either programmatically and in edit mode ?
Thanks you.
06-18-2013 04:02 AM
Try saving the control as a Type def. To do this, right click on the control and select Advanced -> Customize. In the pop out window, change the drop down menu with Control selected to Type def, then save the type def.
Think this should work..
06-18-2013 04:09 AM
A typedef if a set of default properties for a control. So it will not affect other controls. It only effects controls in two ways:
If you want to have existing controls to get the layout of the typedef, you have to replace each control with a control derived from the typedef.
Norbert
06-18-2013 06:10 AM
Ok, I understand that if I create a strict typedef, and then many controls o that type, each change to the typedef itself will be reflected on all the controls.
But imagine for some reasons I do not want to create a typedef for each of them, I just would like them to look them same.
I was thinking to something like the Microsoft Word feature that you select some text, then you hit the button "Copy format", then you select some other text, and the two selections look the same (fonts, colors, size, ecc).
06-18-2013 06:18 AM
You can modify the default font settings in LV. To do this, you have to open the LV Options => Environment.
This affects the fonts for future controls you create. It does not affect size settings like width or height.
If you want to modify this for several controls at once, create them, select them and then use the "Resize Objects" button in the icon bar:
hope this helps,
Norbert
06-18-2013 10:11 AM - edited 06-18-2013 10:13 AM
I don't think he wants to change the defaults on a global scale. I think all you have to do is customize a control and save it for use later? Hopefully you aren't so far along that it's going to be difficult to find all the places where you want to replace the old control with the new one?
01-01-2014 04:22 PM
I think the analogy of MS Office's "Format Painter" is a good one.
For optimal efficiency, modern software should not make developers specify every property of everything individually, but to be able to inherit* properties from somewhere.
I sure wish LabVIEW had a feature like this.
* or, using similar/equivalent terms: adopt, retrieve, obtain, get.
01-01-2014 05:22 PM - edited 01-01-2014 05:23 PM
MattI wrote:I sure wish LabVIEW had a feature like this.
There are plenty of similar ideas in the ideas exchange (for example this one). All you need is vote for it. 😄
(in the above example, I would simply delete all other controls and do a ctrl-drag to make copies of "A", then change the labels. ;))