I am writing regarding an subcomponent drawing update problem I have. I am creating a minimalist GUI application. The aim is to print continues values on a Label component. I have now taken following steps.
1. I have created a GUI sub component class called CustomComponent in the Introjucer. The Class introduces a Label called intLabel
2. I have created a reference to the sub class in MainComponent and made the sub component visible
3. in the CustomComponent I have created a method called updateLabel() which embodies intLabel-setText() method as follows
intLabel->setText(String (receiveOSCVal), sendNotification);
The setText() within updateLabel() method works as expected when called through CustomComponent constructor. That is, intLabel’s field reveives values and they get printed as expected.
Now the problem is following. If the updateLabel() method is called through another class the text field does not update. However, sent values are stored in the intLabel. I have checked this with getText() method as follows
I am asking what should I do differently in order to make the intLabel update visually? Your help is much appreciated.