11-15-2022 05:25 AM
The "Three button dialog core.vi" uses FP.open properties instead of invoke node Front panel:Open/Close (LV2018). That's been deprecated for quite a while by now.
Solved! Go to Solution.
11-15-2022 06:19 AM
11-15-2022 07:35 AM
@Yamaeda wrote:
The "Three button dialog core.vi" uses FP.open properties instead of invoke node Front panel:Open/Close (LV2018). That's been deprecated for quite a while by now.
Sometimes you write code when you are first learning LabVIEW and even though it works well, you are perpetually embarrassed whenever other developers look at the BD.
AQ once told me that he would go back and clean up his mess. I assume nobody wants to develop a full set of regression tests.
Of course, I don't use any built in dialogs.
In my opinion, TBD Core.vi has been obsolete since version 6.
11-16-2022 02:14 AM
11-16-2022 08:00 AM
@thols wrote:
In LV2021 it looks like this in the last frame:
So just upgrade LabVIEW 🙂
That method is exactly what the complaint was.
Essentially, TBD Core, fills in the button text before showing the FP. Really, that isn't a bug. In fact, it's desired since all the p node writes have to happen in the UI Thread and having the text change while the FP is visible and then moving the FP to center it would be a rather poor UX. This actually is a proper use of the FP.Open method.
Not a bug but, yeah, the code could look nicer.
11-16-2022 08:24 AM
@JÞB wrote:
@thols wrote:
In LV2021 it looks like this in the last frame:
So just upgrade LabVIEW 🙂
That method is exactly what the complaint was.
Essentially, TBD Core, fills in the button text before showing the FP. Really, that isn't a bug. In fact, it's desired since all the p node writes have to happen in the UI Thread and having the text change while the FP is visible and then moving the FP to center it would be a rather poor UX. This actually is a proper use of the FP.Open method.
Not a bug but, yeah, the code could look nicer.
If I understood the OP correctly, his complaint was about the node being deprecated but in use in LV2018. In Later LV-versions, that is corrected, which I showed. I did not mean anything about it being incorrect. I don't know how the code looks like in 2018 but I assume the behavior is maintained although the deprecated node is used.
I especially like this part of the code:
If anything, Three Button Dialog should be deprecated 😀
11-16-2022 09:00 AM - edited 11-16-2022 09:01 AM
Exactly, that's how it should be. When they deprecate code and suggest we use something else i don't expect to find it in vi.lib. 🙂
And you know very well i don't decide the version at this place. 😉
11-16-2022 09:02 AM
@JÞB wrote:
That method is exactly what the complaint was.
The complaint was about using the property (https://labviewwiki.org/wiki/VI_class/Front_Panel_Window.Open_property), which the TBD certainly did use until recently.