vugie Posted October 13, 2010 Report Share Posted October 13, 2010 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: (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? Quote Link to comment
jgcode Posted October 13, 2010 Report Share Posted October 13, 2010 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: (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 Quote Link to comment
vugie Posted October 13, 2010 Author Report Share Posted October 13, 2010 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 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.