Jump to content

Front panel with round corner


Recommended Posts

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 ?

Link to comment

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
Link to comment
  • 1 month later...

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

Link to comment
  • 2 weeks later...

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

Link to comment

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

Link to comment

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

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.