LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Customized array control" can't contain elements?

   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?

pic2.png 

 

0 Kudos
Message 1 of 8
(3,370 Views)

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.

0 Kudos
Message 2 of 8
(3,361 Views)

My step:

 1. Add "Array Control"

     step1.png.

 2.Make Color and BackColor transperant.

  step3.png    

  3. paint the border of the array, to make it transparent

step2.png 

 

  I didn't paint the interior, to show its shape.

 

0 Kudos
Message 3 of 8
(3,355 Views)

What version of LV are you using?  Can you post your VI?

 

I had no problems following your steps with LV 2010.

0 Kudos
Message 4 of 8
(3,350 Views)

To Ravens Fan:
    Do you use my customized control? I use LV 2009.

0 Kudos
Message 5 of 8
(3,340 Views)

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?

0 Kudos
Message 6 of 8
(3,335 Views)

I find the reason:

 1.If the "Cumstomized array control"is saved as Control, It works.

  step4.png

 2. If the "Customized array control" is saved as "Type Def." , It doesn't work.

    step5.png

 But Why the difference?

0 Kudos
Message 7 of 8
(3,332 Views)

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.

0 Kudos
Message 8 of 8
(3,295 Views)