cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX: Backend communication to custom container text area (wildcard)

H S
Associate III

Hello to everyone,

I was able to add a backend communication from a screen to other FreeRTOS task with a queue message and now I try the other way from the other task to the screen/view.

I add all the parts from the TGFX support site backend-communication to the model and so on, but I'm not able to access to this specific text area (wildcard) because it's a "protected member" of the custom container class.

Maybe it's just a easy problem but because of my poor C++ knowledge I don't find a solution for this problem.

How I get access to a protected custom container member (text area) which is placed on a screen?

Maybe someone can help me with some hints or code snippets.

Thank you in advance.

12 REPLIES 12
TDahl
Associate II

Try moving the implementation of the notifyTemperatureChanged() function to the cpp-file.

mainScreenPresenter.hpp:

  1. virtual void notifyTemperatureChanged(int newTemperature) ;

mainScreenPresenter.cpp:

  1. void mainScreenPresenter::notifyTemperatureChanged(int newTemperature)
  2. {
  3. view.setTemp(newTemperature);
  4. // ^ error: member access into incomplete type 'mainScreenView'
  5.  
  6. }

/Thomas

H S
Associate III

Wuhuu, it works now!!

Thank you so much for your help Thomas. ����

TDahl
Associate II

��