Hi Gurdas,
I apologize for not specifying
everything necessary to add the custom control to the palette. Here are the reasons for your two issues (notice that they are answered in reverse order):
2: The reason that you can't drag and drop your "control" when it's in the palette is that it's not a custom control! Yes, the name has the extension "*.ctl", but the way you created it was not the way you are supposed to create a custom control. My guess is that you took a VI and saved it with the *.ctl extension, because there's a block diagram associated with it ("Window >> Show Diagram"). Custom controls do NOT have a diagram and they are created using the following procedure:
In any VI, select a default control on the front panel that you want to customize. Right-click and choose "Advanced >> Customize...". This will open the Control Editor, and you can now do all the customization you want to the control. Click the "wrench" tool to perform advanced edits of the control. When you are satisfied with the customization and want to save the control, just close the Control Editor and click "Yes" when prompted to save the control. Congratulations - you have now successfully created your first real custom control.
1: When editing palettes, you can't edit any of the default palettes. Therefore you have to create your own palette first. To create a custom palette, follow the steps in the previous post until you have clicked the "Edit Palettes..." button. Choose the palette that you want to use as a starting point for your customized palette (e.g. "default") from the "Palette View" ring. Then choose "new setup...", enter the name of your new palette and hit "OK". You can now insert your control anywhere in the Controls Palette or VIs anywhere in your Functions Palette.
I sincerely hope that this thorough explanation makes it possible for you to conquer the LabVIEW palettes...
Have fun!
- Philip Courtois, Thinkbot Solutions