Change the Color of a Picture Control’s Border Programmatically in LabVIEW

By Ralph - Last updated: Monday, March 2, 2009 - Save & Share - Leave a Comment

In one of my project, there are about 24 pictures on the front panel. When the user selects one of these pictures, I want there is an interactive way to show which picture has been selected. And I think to change the picture control’s border color is a nice solution.

I can change the border color by using color tool in development mode, but there isn’t a property to change the border’s color programmatically. Finally, I found a way to work this around. Following is how to make this work:

Put a slightly bigger Boolean indicators or color boxes behind the picture indicators. When the picture is clicked or selected, we can change the color of the underlying Boolean indicators or the color boxes. By this way, the interactive effect is realized, and it looks great for me!

Related posts:

  1. How to Create a Programmatically Changed Text Label In LabVIEW In LabWindows/CVI, we can create a free label text control...
  2. How to Add Version Control in LabVIEW LabVIEW does not have built-in version control, but we can...
  3. How to Run a .msi file in a LabVIEW Application Installation There is no support of the running of .msi files...

Posted in LabVIEW, VI Software • Tags: , , , , Top Of Page

Write a comment