11-03-2009 08:58 AM
Hi Matthew,
I tried to do that in LV 2009 and failed but yours looks good and indicates you did it in LV 8.6.
Do you have LV 2009 around to try to recreate your edits?
I amy have missed something and I'd like to learn what.
Ben
11-03-2009 09:10 AM
Ben,
I do not have an installed copy available to me right now. I'll see what I can do.
11-03-2009 09:13 AM
altenbach wrote:
Matthew, your controls is also not perfect. For example of you resize it smaller, you see that the inner part shrinks faster than the frame, also giving an unsatisfactory global result.
I only made it bigger not smaller. Yes, it is still not perfect. I also am constantly designing custom controls for the size I need it to be. A customer wanted these Vista style buttons with all the fancy shading, and I had to make images for every button since it wouldn't scale properly. I would like to see NI open up the control editor for at least vector based graphics, but it still won't make everybody happy and is most likely a ton of work.
11-03-2009 09:35 AM - edited 11-03-2009 09:35 AM
Ben,
Here are the instructions for what I did:
1. Open a new custom control
2. Drop a color box which has a frame (I am starting with the Modern colorbox here)
3. Open another new custom control
4. Drop a modern boolean
5. Change both controls to customize mode
6. On the boolean, select the LED part, right-click and choose Copy to Clipboard (I cannot get CTRL-C to work properly for the LED part).
7. On the colorbox control select the color box part, right-click and choose (Import from Clipboard at Same Size)
8. Repeat 6 and 7, but using the frames for the control instead.
As Christian pointed out, the control works around the size you deisgned it for, but looks worse the further you get from the designed size. It appears that resizing works, but the scaling is not.