bjarni Posted November 7, 2019 Report Share Posted November 7, 2019 Hello, I ran into problem where I had a screen with two instances of the same Custom control (see picture). Parameter to the control on left is TestFlag1 and on the right it's TestFlag2. Accordingly THe light on left shows TestFlag1 ad the other is TestFlag2. When a button is pressed, a message box pops up and when OK is pressed there the value of the parameter (TestFlag 1-2) is toggled. Problem is that it doesn't matter which button I press, there is only the value of TestFlag2 which gets toggled (i.e. light on right toggles no matter which button I press) If I skip the message box and do the toggle directly in the button press, the correct flags are always toggled. Am I missing the correct way to do this or is it just something I have to work around ? Thanks, Bjarni Link to comment Share on other sites More sharing options...
Saragani Posted November 7, 2019 Report Share Posted November 7, 2019 OK, I was able to reproduce the bug. Currently you will have to work around this issue (like creating your own message box), Please note that for a message box that you create then if you use a Rectangle element as a background, then presses are passed to the elements below it (Which is not good for you), but if you use a fixed text with a background, but with no text, and a dummy action linked to it, then it catches the touch events and do not pass it to the elements below it. Link to comment Share on other sites More sharing options...
bjarni Posted November 7, 2019 Author Report Share Posted November 7, 2019 12 minutes ago, Saragani said: Can you share a project, so I can reproduce the problem easily, and fix the bug? Hi, can I send it to you? Don't feel comfortable leaving the whole stuff here in the open... Link to comment Share on other sites More sharing options...
Saragani Posted November 7, 2019 Report Share Posted November 7, 2019 No need to. Read my edited post. I'll investigate it on Sunday morning, and a fix will be available on next release. Link to comment Share on other sites More sharing options...
bjarni Posted November 7, 2019 Author Report Share Posted November 7, 2019 Ok fine - thanks for the advice Link to comment Share on other sites More sharing options...
Saragani Posted November 7, 2019 Report Share Posted November 7, 2019 OK, after looking at the code, fixing the bug would be much harder than I thought, and it requires people from several teams. For now, it is a known issue, and a possible fix might be preventing message box actions on "Custom Controls parameters", but only on Global tags (including timers and IOs) Link to comment Share on other sites More sharing options...
emirdikicioglu Posted February 18, 2022 Report Share Posted February 18, 2022 Hello. This problem also exists in version 1.32.98. In which version was the problem fixed? Do you have information? Link to comment Share on other sites More sharing options...
Saragani Posted February 24, 2022 Report Share Posted February 24, 2022 It should be fixed in 1.33 (Not released yet) Link to comment Share on other sites More sharing options...
jasonbondi Posted October 24, 2022 Report Share Posted October 24, 2022 When are we likely to see 1.33 released? currently having this issue also on message box for a button where OK is not triggering actions set Link to comment Share on other sites More sharing options...
NoamM Posted October 24, 2022 Report Share Posted October 24, 2022 Hi jasonbondi, Already released - https://www.unitronicsplc.com/software-unilogic-for-programmable-controllers/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now