12-28-2008 12:37 AM - edited 12-28-2008 12:46 AM
How would you cut a hole through front panel objects ? Could you build something equivalent to the vi below ?
12-28-2008 02:32 AM - edited 12-28-2008 02:34 AM
chilly charly wrote:
Could you build something equivalent to the vi below ?
Yes .
And if you know the trick, please don't post it immediately... 😉
Oh, well. Since you insist.
Here's a hint for those who want to look (select the text to view it): this is just a special case of making something in the FP partially transparent.
12-28-2008 09:10 AM - edited 12-28-2008 09:11 AM
Let's make things slightly more difficult : Dig also a round hole through the front panel objects, as shown on the image below.
Post your achievements as images, we shall compare the codes later... Pure LabVIEW only of course !
Have fun !
12-28-2008 10:01 AM
12-28-2008 10:53 AM - edited 12-28-2008 10:59 AM
smercurio_fc a écrit:
Is the VI supposed to be operational ? Yes of course !
Are you still supposed to be able to use the controls ? For example, are you supposed to be able to select the max value of the knob to be able to change it ? Well, if there is a hole there, there is nothing to be selected ! Otherwise, everything should be functional.
Is the hole supposed to move as you move the window ? The holes belong to the pane. So they move when you move the window or when you scroll the pane.
Your front panel does not appear to have a title bar... 😮 ???
Are any temporary redrawing side-effects allowed ? If so, to what extent ? Redrawing side-effects should be kept minimal, if any 😉
12-29-2008 05:25 AM
How about this (8.0)?
Of course, people who know what they're doing will be able to play with the VI to find out at least some of the trick, but these people probably have an idea already.
12-29-2008 06:53 AM
12-29-2008 09:08 AM
chilly charly wrote:Your front panel does not appear to have a title bar... 😮 ???
Never mind. I thought I was looking at your Windows desktop with the gray pane being the LabVIEW window. I don't normally see such scenic vistas on LabVIEW front panels. Kind of reminds me of an interviewee at my previous job who was so proud of the wood-grain paneling he had for his VI's front panel. Note that I'm not dinging your style!
12-29-2008 09:42 AM
smercurio_fc a écrit: [...] Kind of reminds me of an interviewee at my previous job who was so proud of the wood-grain paneling he had for his VI's front panel. Note that I'm not dinging your style!
I have to confess that I'm not using usually such panel backgrounds :D. It was just a convenient way to illustrate the hole idea.
But may be we should push your idea ahead, and try to dig a hole through the VI pane to see the window board below... 😉
12-29-2008 10:32 AM
chilly charly wrote:
try to dig a hole through the VI pane to see the window board below...
I don't think you'll be able to do this using pure G, but I do have VIs which call into the Windows API which can do that.