09-24-2010 09:17 PM
I want hide the border of array control , so I customized it. (see attachments) It seems OK.
But when I use it , I can't drag an element into it, the element can only float on the array, why?
09-24-2010 09:32 PM
What were the steps you did to customize it. If you used more than two operations with the paintbrush, you did too much. Your control is not transparent.
09-24-2010 09:44 PM - edited 09-24-2010 09:46 PM
My step:
1. Add "Array Control"
.
2.Make Color and BackColor transperant.
3. paint the border of the array, to make it transparent
I didn't paint the interior, to show its shape.
09-24-2010 09:49 PM
What version of LV are you using? Can you post your VI?
I had no problems following your steps with LV 2010.
09-24-2010 09:54 PM
To Ravens Fan:
Do you use my customized control? I use LV 2009.
09-24-2010 10:00 PM
Yes, your contol is broken but I can't reproduce it either. If you do the same thing to the regular array control, does the same thing happen?
09-24-2010 10:10 PM
I find the reason:
1.If the "Cumstomized array control"is saved as Control, It works.
2. If the "Customized array control" is saved as "Type Def." , It doesn't work.
But Why the difference?
09-25-2010 12:49 PM
Actually, I missed the fact you attached the .ctl file to your original post.
But I am still not able to replicate your problem. But I do have a question. Where are you when you try to drop a control into the array container? Are you in the control editor or on the front panel of the VI?
If I am in the control editor, I can drop the item into the array just fine.
If I am on the front panel, I can't. But that is to be expected. Since the control is defined by its typedef, you can't make any modifications to it. You have to either open the typedef and modify that, or disconnect from its typedef to be able to modify that instance of the control on the front panel.