LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Example - setting icons on BD windows

This is not a question. I'm just parking some code for this IE idea - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Different-Icons-for-FP-BD-Project-windows-in-windows-t...

 

 

So the following VI (LV 2011) detects the activation of VI windows (meaning that they get focus) and if it's a BD window, it changes its window icon.

 

Some comments on this:

 

  1. This is just a demo. It's not an actual tool.
  2. As such, it's really not finalized. I only ran it on 32 bit XP. I don't know how it would work on other systems. I didn't add any error handling (like calling GetLastError and FormatMessage). The VI has to be run manually and stay open, etc.
  3. For something like this to really be useful, you actually need a service which will hook the creation of new windows, but you can't do that in LV.
  4. It might be more usable if this was run as an external program, but I'm guessing you can't get the VI activation event remotely and you would still need to know the VI server details of all LV versions.
  5. It might be possible to run this on a private context, but I have no experience with that.

 

Note - the file is a zip file.


___________________
Try to take over the world!
0 Kudos
Message 1 of 1
(3,078 Views)