10-19-2015 02:29 PM
@bienieck wrote:
Yes, I'm certain it is doable. Here are examples, even from LV:
http://www.codeproject.com/Articles/34158/Cool-Semi-transparent-and-Shaped-Dialogs-with-Stan
http://www.oocities.org/gzou999/features.htm
http://www.oocities.org/gzou999/grf/semitransparent.gif
My code is in C, not LabVIEW.
Integrated into LabVIEW with Code Interface Node.
10-20-2015 03:39 AM - edited 10-20-2015 03:45 AM
So it is doable 🙂 Have you used UpdateLayeredWindow?
@nathand I started this thread as a generic discussion about issues with WinAPI. It was a result of my frustration. But I was asked by Kyle97330 about particular problem, so I explained it. I think that the main problem is not in one's knowledge of C but in the specifics of WinAPI and in the way how it is documented.
10-20-2015 08:19 AM - edited 10-20-2015 08:21 AM
I think that the main problem is not in one's knowledge of C but in the specifics of WinAPI and in the way how it is documented.
I think this is where you are fooling yourself.
You want someone else to re-gurgitate it down to a level that you can understand it, and that does not seem likely given your knowledge of C
10-20-2015 08:26 AM - edited 10-20-2015 08:28 AM
Thank you for your opinion nyc. You've been very helpful in this thread. Want some kudos?
10-20-2015 08:32 AM - edited 10-20-2015 08:42 AM
@bienieck wrote:
Thank you for your opinion nyc. You've been very helpful in this thread. Want some kudos?
I don't need kudos as validation. LOL.
By the way, it looks like George Zou who answered above and wrote the G Toolbox may be available if you want to pay him for his services.
10-20-2015 11:13 AM - edited 10-20-2015 11:14 AM
bienieck wrote:
@nathand I started this thread as a generic discussion about issues with WinAPI. It was a result of my frustration. But I was asked by Kyle97330 about particular problem, so I explained it. I think that the main problem is not in one's knowledge of C but in the specifics of WinAPI and in the way how it is documented.
In my opinion, the MSDN documentation is good, but if you feel that it should be more accessible to non-C programmers, then you should take that up on the Microsoft forums and not here. I don't think you'll get much support, though, as additional documentation for people who don't know C would be unwanted clutter for experienced C (and WinAPI) programmers.
Take a look at the screenshot below from the LabVIEW context help (I've deliberately picked a complicated example). As a LabVIEW programmer, you quickly see that most of the inputs and outputs are 1D arrays of floating point numbers but that "termination" is a cluster of numerics, "number of function calls" is a scalar integer, f(x,a) is a reference, and perhaps that "covariance" is a matrix; you understand the purpose of the error wire; and you know which inputs are required. This image wouldn't mean much to a C programmer, though. Conversely, when a C programmer sees a function prototype in the MSDN documentation, or in a header file, he or she recognizes a lot about how to call that function. Of course, in both cases (C and LabVIEW), reading through the function's documentation is still necessary to understand what the function does and what values should be passed.
10-20-2015 12:38 PM
There is an easy way to achieve this with 2 windows instead of one multilayer window:
1. make the top window transparent but the controls aren't with Windows API. Make this window floating or modal.
2. make the bottom window semi-transparent. This window only provide a background.
The only problem is how to make the bottom window move with the top window.
You can NOT make the top window a child window of bottom window.
You might be able to use the queue. Or you can send a Windows message to bottom window.
10-20-2015 02:27 PM
11-01-2015 06:51 AM
@Regulator What do you mean?
11-01-2015 07:26 AM
Is it possible to call UpdateLayeredWindow function with use of .NET constructor node? If so how to find proper assembly? I've never used .NET assemblies and even don't know how it actually works...