12-07-2020 11:11 AM
Hi - I have an application where I would like the user to be able to change some graph/plot properties while the program is running. I can use property nodes to change these properties programmatically, and I could make my own dialogs for the user to do this (what I'm doing now), but it would be much faster if I could use the properties dialog that Labview has in edit mode. Does anyone know if there's a way to access those during runtime? I've attached a pic of the dialog I would like to use, it doesn't seem to be available when the program is running. Thanks for any help
12-07-2020 11:20 AM
12-07-2020 11:23 AM
Yes, great point, however I chose to use a custom legend for various reasons, so I can't use that. Any other thoughts?
12-07-2020 01:28 PM
12-07-2020 01:50 PM
So, the core of your question is: "I would like to access the plot properties right click menu in runtime. Is that possible?"
And the answer is no. That menu contains properties that are only able to be changed in edit mode (Label Text for example). I don't believe NI has made any separate dialogue for this, aside from the defaults of Plot Legend, Scale Legend, etc.
Unfortunately, this leaves you in the situation where you either have to write your own, or hope you can find one someone else has already written. You can check VIPM for similar stuff, or browse through posts on the UI Interest Group. I've never run across one, but I've had some good luck there in the past.
12-08-2020 07:24 AM - edited 12-08-2020 07:25 AM
This actually one of the simplest reasonable requests and one of the hardest things to do right.
I often want to give my users not all, but some of the graph properties. This is hellish. To specify colors, simply use a color box. To specify line stile and width, with a graphical drop down menu, I'd advice to give up. It's a lot of hard work to get it to work in some circumstances, but to get it working in for instance for VIs in subpanels, and modal VIs, and floating VIs, it's near impossible. To get that menu as an sub item in a menu, even harder...
Sad, but true...
Skip that, I should have looked at the image that you didn't embed.
12-08-2020 07:33 AM - edited 12-08-2020 07:34 AM
You can get that property page in and around "C:\Program Files\National Instruments\LabVIEW 20xx\resource\PropertyPages\Pages".
As mentioned, it won't be fully functional during run time. You'll probably need to tune so much it's not practical. It doesn't help that they are PW protected...
12-08-2020 09:07 AM
Thanks all - I suspected I would not be able to access it, or not easily, but it was worth a try.