2019-10-04 12:11 AM
2019-10-04 12:34 AM
Sounds like you need to call invalidate() on your widget.
This is done in the view on the screen that has the widget. when you have defined a function that can invalidate the view, your presenter can call that function.
lastly the model will have to call the presenter.
your model have the function called tick() which is called each time a frame is finished rendering. this way you can easily control if you want to wait a couple of frames before refreshing the screen.
2019-10-04 01:52 AM
@HP
Thank you. another thing how to put GUI widgets above the pixel widget. till now all other GUI widgets are beneath the pixel data widget.
2019-10-04 02:22 AM
That is most likely because you have added the pixel widget last in the designer.
In the designer, select the screen in the top left corner. open the drop-down box and see all the elements in your design there. you can re-arrange the order by dragging the items up or down. this also changes the layering of your items
2019-10-04 02:42 AM
@HP
I tried this before but its not visible there and i think thats because you can not add pixel Data Widget from the designer directly
2019-10-04 03:04 AM
@HP
Thanks for your help i found way to solve it.
Best Regards
Mahmoud
2019-10-04 04:52 AM
@Community member - that sounds great!
Can you tell me what you did to make it work?
2019-10-06 07:14 AM
@HP
I just changed the order in the generated GUI/src/screen1viewbase.cpp. but i am not sure if this is the right solution. maybe there is another better way.
2019-10-06 08:39 AM
Sounds like a fine solution if you don't have the option to rearrange the orders inside the TouchGFX.
I'm not familiar with the pixel widget you're referring to so it might not pop up.
@Martin KJELDSEN might be able to tell you if the widget is accessible through the designer.
2019-10-06 11:44 PM
Hi,
There's no PixelData widget accessible from the designer - It's kind of the first attempts at loading data from somewhere other than flash so it's becoming legacy and won't see support from the designer.
What you can use instead is an image which can then be configured as a dynamic image to load its data from somewhere in memory that you specify.
/Martin