Jump to content
Irene_he

Make Window Tranparent

Recommended Posts

Cool. We can now do arbitrarily-shaped splash screens that fade into view over a second or so. I've been meaning to do that ever since I got .NET but never had the time/motivation/justification.

And I have a big oval with the word "BOO!" in it that occasionally fades in at a random place on the screen and then fades out again.

So is there a real use you had for this? :)

post-10-1079384349.jpg?width=400

Share this post


Link to post
Share on other sites

Well, I was thinking to use it to overlay my image window to other windows so that user can draw on the image window, but at the same time see the underneath window, for the purpose of some instruction or training software, an idea is if you can overlay on top of your graph and make some marks (circle, rectangle or line) like a professor. I thought other people may be interested in it too, so I donate here. :)

Share this post


Link to post
Share on other sites

Neat. Surely someone's already done this for IT training? I'd have thought someone with a laptop and projector teaching a class would already have been doing this but I've never looked.

Might also be an easy way of overlaying static or animated illustrations on video footage; Powerpoint NextGen.

We did a project once where we were just scripting video and monitoring the reactions of the viewers. The psychology researchers who contracted us had edited the videos to obscure, for example, the eyes, to observe the effect of reduced information. That would have been a much better system with this to allow them to modify the footage on the fly.

Share this post


Link to post
Share on other sites

Ah young grasshopper, you assume too much. Even if you put in 255 for the value the white area stays transparent. I was trying to find a way to make the white areas white again.

:blink:

Share this post


Link to post
Share on other sites

Yes, you are right, the white area would become transparent forever. That is because some bit set of the window need to reset back. I need to finish up the things on my hand before I can take a look into it. I'll keep you folks updated. Sorry for the meanwhile just restart your LabVIEW everytime. I know it's not very nice though, but... ;)

Share this post


Link to post
Share on other sites

Hello

I just want to mention that there is an other possibility to make windows transparent.

If you only need the feature in WINDOWS OS environment than use the API from WINDOWS itself !

I'm currently working on an OpenG addon for doing such kind of stuff.

If you would like to test my Example VI please put the content of "lvwutil32.zip" in the user.lib folder.

with best regards

Mario

Download File:post-19-1079538066.rar

Share this post


Link to post
Share on other sites

Well, Irene's post IS using the standard Win API.

I can't get yours to work. It's correctly getting a win refnum but the return from getWindowLong is zero, which I guess is not right.

You're using a sequence unnecessarily; frame 1 is dependent on frame 0 and the code can be in the same frame because dataflow will ensure it works in the right sequence. It may not matter which order the second two function calls take place in either. Sequences with sequence locals and wires backtracking across each other is a pain, IMHO.

Share this post


Link to post
Share on other sites

Are you using "Transparency.vi" as the window name ?

And yes i know that the sequenze is unnecessary . I just wanted to highlight the function steps :-)

Mario

Share this post


Link to post
Share on other sites

I wasn't- I was using "Transparency.vi Front Panel".

But it doesn't appear to work using "Transparency.vi" either, yet again Get Window Refnum is returning a refnum and GetWindowLong is returning zero.

If I deliberately type garbage then Get Window Refnum returns zero, so it seems it IS correctly getting the window at the start.

Curious.

Share this post


Link to post
Share on other sites

Hello

You have to leave out the "Front Panel" substring and only use "Transparency.vi" cause LabVIEW adds the string "Front Panel" to the String in the Window, but the name is only "Transparency.vi"

Hope it helped.

have a nice day

Mario :D

Share this post


Link to post
Share on other sites

Yes- I have tried "Transparency.vi" two posts back and it don't work.

Anyone else tried it here and care to comment?

I'm on XP. What OS was it developed on? Though any major changes would have brought up errors that the function wasn't found in the DLL.

Share this post


Link to post
Share on other sites

Hello!

I tested the VI called Transparency.vi and it runs...

To test this vi I copied several files to my /LabVIEW7/user.lib folder

LVWUtil32.dll 33kb

MANUAL.WRI 468kb

Readme.doc 24kb

Winevent.llb 541kb

WINKEY.LLB 68kb

WINNET.LLB 51kb

Winsys.llb 164kb

WINUTIL.LLB 646kb

My system: WinXP SP1, LabVIEW7

I testet the VI with different windows, like notepad and so on... and it works...

Share this post


Link to post
Share on other sites

Interesting.

I didn't bother doing the copy, but I did extract the zip file to the same directory as the VI itself and it now works. My existing winutil.llb must be an old and unreliable version.

Share this post


Link to post
Share on other sites

For me this seems like the transparency after running the vi is actually a redraw-problem.

If you move the help window on top of a white window, background will change back from transparent to white again.

At least for me it does, is the behaviour the same with other users as well?

Furthermore I couldn't download Irene's source code and don't actually know how this is done, thus I'm not able to debug it further. :blink:

Nice thingy, might use it sometime just for fun if I can reverse the transparency programmatically.

Share this post


Link to post
Share on other sites

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.