Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
Hi All,
any idea how to get return value from the message box which can be very easily added to the visualization?
Would be nice to have a possibility to easily add bool variable linked with an button...
All examples I found were unnecessary difficult (yes, I downloaded the examples, but nowhere is it easy like this) - just need to know the return value and missing the way how to get it.
Hello,
yes, I've seen it and, well, when this seems to be the only way, than I'll use it. In the end it is easy... but how the person in the link found what to call and all the staff around is quite mystery to me π
Additional question - is it possible to use UTF-8 strings as input to the message box? Seems to be STRING based (I'd expect WSTRING) and it is causing me problems with non-ascii charset.
Regards
Jan.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Check ...\CODESYS\Projects\Visu\Dialogs\VisuDialogs.library
You can edit library and change STRING to WSTRING.
By the way, WSTRING is not UTF-8, it's UCS-2 (kind of UTF-16).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
any idea how to get return value from the message box which can be very easily added to the visualization?
Would be nice to have a possibility to easily add bool variable linked with an button...
All examples I found were unnecessary difficult (yes, I downloaded the examples, but nowhere is it easy like this) - just need to know the return value and missing the way how to get it.
Thanks a lot!
Regards
Jan.
Hi.
Check this:
https://forge.codesys.com/forge/talk/Visualization/thread/9939de4ce7/
Hello,
yes, I've seen it and, well, when this seems to be the only way, than I'll use it. In the end it is easy... but how the person in the link found what to call and all the staff around is quite mystery to me π
Additional question - is it possible to use UTF-8 strings as input to the message box? Seems to be STRING based (I'd expect WSTRING) and it is causing me problems with non-ascii charset.
Regards
Jan.
Check ...\CODESYS\Projects\Visu\Dialogs\VisuDialogs.library
You can edit library and change STRING to WSTRING.
By the way, WSTRING is not UTF-8, it's UCS-2 (kind of UTF-16).