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


  • jan233321

    jan233321 - 2020-10-04

    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!



  • jan233321

    jan233321 - 2020-10-04

    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.


  • kislov

    kislov - 2020-10-05

    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).


Log in to post a comment.