LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

show a message over the front panel

I want to show a message over the front panel, saying for example "This is a demo version".

So I use a string indicator, and I made its background transparent.

The problem is that when I click with the mouse over this message, the indicator takes focus (obviously) and so I can't access to the objects behind it.

 

How can I have a message "over-impressed" the front panel without loosing the ability to click on the front panel objects behind it?

 

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 17
(3,938 Views)

Hi Vix,

you can read the event from your string indicator and send it to the object behind it.

 

Hope it helps.

Mike

0 Kudos
Message 2 of 17
(3,936 Views)

Hi Vix,

 

you may use a panel background picture to simulate a "watermark" ...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 17
(3,931 Views)

you can read the event from your string indicator and send it to the object behind it.


I know how I can read an event from the indicator, but I don't know how I can send it to another object...

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 4 of 17
(3,925 Views)
You would need to use User Events. There's a shipping example that shows how to use User Events. However, I think having a background picture, as GerdW  suggested, is the easier solution.
0 Kudos
Message 5 of 17
(3,910 Views)

If I use a background image, the front panel controls hide the message, but I want the message partially hide the controls, instead.

I see this nice feature when I installed the evaluation version of LabVIEW 8.6 (see attached)

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 6 of 17
(3,905 Views)

I doubt that's done with any kind of control or indicator or decoration. I suspect that's being done directly in the window's paint event (or its equivalent on other platforms) after all other front panel content is drawn.

 

You can probably hook into an OS call to draw your image on the front panel's graphics pane. 

 

You can also submit a suggestion to the Product Suggestion Center

0 Kudos
Message 7 of 17
(3,881 Views)

Hi Vix,

you can disable the string control so that it will not focus even if you click on it. In order to set this property, you have to right click the string control and select Advanced >> Enabled state >> Disabled.

In attachment there is an example of this behaviour.

 

Best regards,

Serena M.

NI Application Engineer

Message 8 of 17
(3,846 Views)

Sorry, this is the right one!

 

Serena

0 Kudos
Message 9 of 17
(3,840 Views)

Just saw this post.

 

Just right click the control navigate to advance>>Enabled state select the disabled option (not disabled & greyed).  This option will restrict the control from receiving the mouse clicks from user and will not get the focus.  Easy oneSmiley Happy

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
Message 10 of 17
(3,833 Views)