Jonathan Borduas Posted November 15, 2010 Report Share Posted November 15, 2010 Hi everybody I'm searching a way to have a window with round corner . Is there a way to do it in labVIEW ? or Is it possible to get the picture of what the front panel is hiding so i can put it in a 2D picture control ? Thank you J Borduas Quote Link to comment
crelf Posted November 15, 2010 Report Share Posted November 15, 2010 Icon Technologies used to have a toolkit where you could make your UIs be all sorts of shapes, but I don't see it on their website anymore... Quote Link to comment
Jonathan Borduas Posted November 15, 2010 Author Report Share Posted November 15, 2010 Icon Technologies used to have a toolkit where you could make your UIs be all sorts of shapes, but I don't see it on their website anymore... Thank you, I will take a look Quote Link to comment
Jonathan Borduas Posted November 15, 2010 Author Report Share Posted November 15, 2010 In case I don't find anything on the website of ICON technologies. I was thinking about a workaround: I get the picture of the content behind the window and I put a picture control behind the round shape of the corner. So you have the impression the window stop there but it doesn't. Do you think it's possible ? Quote Link to comment
jcarmody Posted November 15, 2010 Report Share Posted November 15, 2010 Do you think it's possible ? There's a thread on NI's forum about cutting holes through front panels. You might be able to implement your idea following that example. The BD password is "simple". Quote Link to comment
Jonathan Borduas Posted November 15, 2010 Author Report Share Posted November 15, 2010 There's a thread on NI's forum about cutting holes through front panels. You might be able to implement your idea following that example. The BD password is "simple". Thank you so much ! Quote Link to comment
jcarmody Posted November 16, 2010 Report Share Posted November 16, 2010 Thank you so much ! I saw where your status says you've accomplished this. Please show us how you did it. Quote Link to comment
Francois Normandin Posted November 17, 2010 Report Share Posted November 17, 2010 Hi Jonathan, I don't know which solution you chose, but I meant to put this example together earlier... just didn't find the example code I was looking for. The code below is taken from John Lokanis, see this topic. Anyway, I put up this example. playing with Make Window Transparent.zip <object id="scPlayer" class="embeddedObject" width="1090" height="628" type="application/x-shockwave-flash" data="http://content.screencast.com/users/normandinf/folders/Jing/media/ce6b4f99-a9d6-40d3-812d-4a21bc6d3f07/jingh264player.swf" > <param name="movie" value="http://content.screencast.com/users/normandinf/folders/Jing/media/ce6b4f99-a9d6-40d3-812d-4a21bc6d3f07/jingh264player.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <param name="flashVars" value="thumb=http://content.screencast.com/users/normandinf/folders/Jing/media/ce6b4f99-a9d6-40d3-812d-4a21bc6d3f07/FirstFrame.jpg&containerwidth=1090&containerheight=628&content=http://content.screencast.com/users/normandinf/folders/Jing/media/ce6b4f99-a9d6-40d3-812d-4a21bc6d3f07/transparent%20panel.mp4&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/normandinf/folders/Jing/media/ce6b4f99-a9d6-40d3-812d-4a21bc6d3f07/" /> <iframe type="text/html" frameborder="0" scrolling="no" style="overflow:hidden;" src="http://www.screencast.com/users/normandinf/folders/Jing/media/ce6b4f99-a9d6-40d3-812d-4a21bc6d3f07/embed" height="628" width="1090" ></iframe> </object> 2 Quote Link to comment
Jonathan Borduas Posted January 5, 2011 Author Report Share Posted January 5, 2011 Hello everyone, With the Region Functions from the Windows API, you can give the shape you want to the window (such as the shape of the United States, see area examples.lvilb). For more information: http://msdn.microsoft.com/en-us/library/dd162915 (v = VS.85).aspx In the zip file there is a VI for of all Windows API Region Functions. Have fun! Jonathan Borduas Windows API - region functions.zip Quote Link to comment
ancle Posted January 19, 2011 Report Share Posted January 19, 2011 Hi Jonathan, I don't know which solution you chose, but I meant to put this example together earlier... just didn't find the example code I was looking for. The code below is taken from John Lokanis, see this topic. Anyway, I put up this example. playing with Make Window Transparent.zip <object id="scPlayer" class="embeddedObject" width="1090" height="628" type="application/x-shockwave-flash" data="http://content.screencast.com/users/normandinf/folders/Jing/media/ce6b4f99-a9d6-40d3-812d-4a21bc6d3f07/jingh264player.swf" > <param name="movie" value="http://content.screencast.com/users/normandinf/folders/Jing/media/ce6b4f99-a9d6-40d3-812d-4a21bc6d3f07/jingh264player.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <param name="flashVars" value="thumb=http://content.screencast.com/users/normandinf/folders/Jing/media/ce6b4f99-a9d6-40d3-812d-4a21bc6d3f07/FirstFrame.jpg&containerwidth=1090&containerheight=628&content=http://content.screencast.com/users/normandinf/folders/Jing/media/ce6b4f99-a9d6-40d3-812d-4a21bc6d3f07/transparent%20panel.mp4&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/normandinf/folders/Jing/media/ce6b4f99-a9d6-40d3-812d-4a21bc6d3f07/" /> <iframe type="text/html" frameborder="0" scrolling="no" style="overflow:hidden;" src="http://www.screencast.com/users/normandinf/folders/Jing/media/ce6b4f99-a9d6-40d3-812d-4a21bc6d3f07/embed" height="628" width="1090" ></iframe> </object> Hello, In your application, if I show title bar and don't want to show close button. How to do this? Thank you! Quote Link to comment
Francois Normandin Posted January 19, 2011 Report Share Posted January 19, 2011 Hello, In your application, if I show title bar and don't want to show close button. How to do this? Thank you! You might want to make it "unclosable" by the user. Look at the VI Properties "Windows Appearance" tab and uncheck the "Allow User to Close Window". I don't know if that will work as you intend it to work... Quote Link to comment
ancle Posted January 20, 2011 Report Share Posted January 20, 2011 You might want to make it "unclosable" by the user. Look at the VI Properties "Windows Appearance" tab and uncheck the "Allow User to Close Window". I don't know if that will work as you intend it to work... Hello, I already uncheck "Allow User to Close Window", but it just show grayed out. Is it possible shows as attached image? Thank you! Quote Link to comment
Francois Normandin Posted January 20, 2011 Report Share Posted January 20, 2011 Hello, I already uncheck "Allow User to Close Window", but it just show grayed out. Is it possible shows as attached image? Thank you! Doesn't the title bar defeat the purpose of having rounded corners? I don't think I can achieve what you're looking for. Anyone dares trying? 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.