2023-02-21 10:08 PM
Hello,
Is it possible to get callback on my view from custom container which is in another container? And how to do that?
I've tried to do like this. Create a callback for button:
Here goes when callback gets call. And I create an object of other class to call function:
And goes to this function:
The problem with this method is that does not perform commands like "setXY" and etc. but only touchgfx_printf works. What I do wrong?
2023-03-02 7:41 AM
show code where you add create object Addnewzonebutton
2023-03-02 10:53 PM
Addnewzonebutton is in InputOutputConfigurationViewBase it is automatically created by touchgfx
2023-03-02 11:03 PM
I don't understand why does not perform this function (marked in red)
Only prints text and when go through functions and do nothing. I just call function from another class and give them indexes
2023-03-03 3:49 AM
Maybe objects needs to invalidate() ?
2023-03-03 4:12 AM
No, there is handleTickEvent function and there calls invalidate every tick.
2023-03-19 11:08 PM
Hello again,
I'm stuck with it. Maybe someone can help?
2023-03-19 11:35 PM
I've tried two methods. Pass index by pointer and by class.
For better understanding what I want to do I try to explain. First of all in my view window is container and in that container I create a list using another container. On the left is my lists.
This is what I put in list and in this container I put another list:
So here is "SelectController" button and for that I create callback and by click I get index of that button:
So I pass that index by pointer in HeatersAndCoolersConfiguration class
And this is my function in my view window:
Problem is that simulator crashes when I click SelectController button.
Another method that I tried to do pass index by function to call function in another class and it passes index but function like setY(), setVisible() does not work
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.