Jump to content

Class control (.lvclass) in controls palette


Recommended Posts

I want to have a class control in my controls palette. When I try to point .lvclass file in palette editor nothing happens.

I'm only able to add it to the palette with following code:

post-7450-005802600 1286973963_thumb.png

(note "World.ctl" after lvclass path)

With this method control appears in the palette as big quotation mark (same as when item is not found), but works good.

Is there any "normal" method to add .lvclass to palette?

Link to comment

I want to have a class control in my controls palette. When I try to point .lvclass file in palette editor nothing happens.

I'm only able to add it to the palette with following code:

post-7450-005802600 1286973963_thumb.png

(note "World.ctl" after lvclass path)

With this method control appears in the palette as big quotation mark (same as when item is not found), but works good.

Is there any "normal" method to add .lvclass to palette?

Hi Vugie

I recommend creating a .ctl file with a copy of the Class Control on it.

Then add it to your Controls palette.

The above is all transparent to the user - they can select it just like normal.

<object id="scPlayer" class="embeddedObject" width="950" height="691" type="application/x-shockwave-flash" data="http://content.screencast.com/users/jgcode/folders/LabVIEW/media/4aca46f9-66a3-4942-95a6-b927b20bc378/jingswfplayer.swf" > <param name="movie" value="http://content.screencast.com/users/jgcode/folders/LabVIEW/media/4aca46f9-66a3-4942-95a6-b927b20bc378/jingswfplayer.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <param name="flashVars" value="thumb=http://content.screencast.com/users/jgcode/folders/LabVIEW/media/4aca46f9-66a3-4942-95a6-b927b20bc378/FirstFrame.jpg&containerwidth=950&containerheight=691&content=http://content.screencast.com/users/jgcode/folders/LabVIEW/media/4aca46f9-66a3-4942-95a6-b927b20bc378/Class%20Control%20On%20Palette.swf&blurover=false" /> <param name="allowFullScreen" value="true" /> <param name="scale" value="showall" /> <param name="allowScriptAccess" value="always" /> <param name="base" value="http://content.screencast.com/users/jgcode/folders/LabVIEW/media/4aca46f9-66a3-4942-95a6-b927b20bc378/" /> Unable to display content. Adobe Flash is required. </object>

Cheers

-JG

Link to comment

Thanks, jgcode. I didn't think about something so obvious. However it is still a workaround.

I made a simple VI which automates this job. It searches recursivly for .lvclass files and creates controls for them in given folder, copying an icon and with firendly name. Maybe it'll be usefull for someone. LV2009

class controls.vi

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.