LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

popup


@gmazza wrote:

.... and if the string was a constant that only appears with certain conditions?
Let me explain:
I have a table that you fill in automatically depending on conditions. The message with which he fills the table is a string (constant) at Block Diagram.
How do I set the buttons at Block Diagram?


Maybe it would be best if you posted some code.  My example was just one way to try to get the result you wanted and it doesn't work too well as soon as the string changes, or text moves.  You could have it programatically move the hidden button (using property nodes) but this all feels hackey, not I was kinda hoping someone else would post a more elagent solution.

0 Kudos
Message 11 of 18
(755 Views)

This will return the word that was clicked. You could use that to filter for the appropriate message you want to present.

 

Example_VI.png

 

Spoiler
Somebody please fix my regular expression!!!  Smiley Tongue

 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 12 of 18
(743 Views)

Okay so overly complicated probably but I like this option more.  It uses a formatter utility that wasn't completed from here:

 

http://lavag.org/topic/16994-string-formatting/

 

It will format your text given parameters like <b>abcd</b> for bold.  Well I added <a>link</a> for a link that will be blue.  When you have a mouse enter one of these fields the mouse cursor turns into a hand then then back when it leaves.  Then clicking it causes the mouse down event and determines what you clicked on.  You can even change the input string while it is running.  So add text and links to the string control on the left and it should update on the right.

 

My method also works on controls or indicators that are disabled because it relies on an invoke node method to get the mouse location in the text.  It requires OpenG's boolean function, and is saved in 2009.

0 Kudos
Message 13 of 18
(734 Views)

gmazza wrote:

I made a program for monitoring the temperature. Exceeded certain limits, the program returns of alarm messages. These messages contain references to legislation. Is there a way to click on a word (of the message) and bring up the reference?
Thanks



Why so complicated? If there is only one link, you could just do the popup if the user clicks anywhere in the string indicator. Just use a plain mouse-down event.

 

(EDIT: Quote added to clarify what I am replying to. WIthout it, the context is not clear as can be seen by the next few messages)

0 Kudos
Message 14 of 18
(729 Views)

@altenbach wrote:

Why so complicated? If there is only one link, you could just do the popup if the user clicks anywhere in the string indicator. Just use a plain mouse-down event.


The requirements were not clearly defined so I went for scalability, over simplicity.

0 Kudos
Message 15 of 18
(725 Views)

@Hooovahh wrote:

@altenbach wrote:

Why so complicated? If there is only one link, you could just do the popup if the user clicks anywhere in the string indicator. Just use a plain mouse-down event.


The requirements were not clearly defined so I went for scalability, over simplicity.


Oh, I am sorry, this forum does not show which post I am replying to. I was actually addressing the very first post of this thread. Nothing to do with your post, which I haven't looked at [no Labview installed on the current computer...]. 🙂

 

I typically quote relevant sections of a post, but forgot do do it here....

0 Kudos
Message 16 of 18
(722 Views)

@altenbach wrote:

@Hooovahh wrote:

@altenbach wrote:

Why so complicated? If there is only one link, you could just do the popup if the user clicks anywhere in the string indicator. Just use a plain mouse-down event.


The requirements were not clearly defined so I went for scalability, over simplicity.


Oh, I am sorry, this forum does not show which post I am replying to. I was actually addressing the very first post of this thread. Nothing to do with your post, which I haven't looked at [no Labview installed on the current computer...]. 🙂


Oh well you mentioned it being complicated and I had to assume you were talking to me given the way I did it.

0 Kudos
Message 17 of 18
(719 Views)

I edited my post and added the relevant quote to avoid confusion.

0 Kudos
Message 18 of 18
(715 Views)