Jump to content

Front panel with round corner


Recommended Posts

Posted

Hi everybody

I'm searching a way to have a window with round corner rolleyes.gif.

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

Posted

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 ?

Posted

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>

  • Like 2
  • 1 month later...
Posted

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

  • 2 weeks later...
Posted

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!

post-518-0-59983200-1295406868_thumb.jpg

Posted

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...

Posted

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!

post-518-0-29486000-1295488807_thumb.jpg

Posted

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? :P

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.