10-01-2013 11:30 AM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-01-2013 12:15 PM - edited 10-01-2013 12:19 PM
This will return the word that was clicked. You could use that to filter for the appropriate message you want to present.
10-01-2013 12:29 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-01-2013 12:34 PM - edited 10-01-2013 12:46 PM
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)
10-01-2013 12:36 PM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-01-2013 12:40 PM - edited 10-01-2013 12:43 PM
@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....
10-01-2013 12:42 PM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-01-2013 12:48 PM
I edited my post and added the relevant quote to avoid confusion.