cancel
Showing results for 
Search instead for 
Did you mean: 

Containers with buttons; screen with container; change button color in screen.setup()

Roger.ch
Associate III

TouchGFX 4.21

I have defined a user container: "Selection".

The container contains two buttons: switchToScreenOne and switchToScreenTwo.

I have also defined an interaction for each button that changes the screen.

I have defined two screens: One, Two.

Both screens contain the container "Selection1"

The process works fine.

Question: How can I set the color of the buttons in the containers in the ScreenOneView::setupScreen() function?

I have already tried everything and just can't find the solution.

1 ACCEPTED SOLUTION

Accepted Solutions
MM..1
Chief III

Simply create method in container

View solution in original post

3 REPLIES 3
MM..1
Chief III

Simply create method in container

THX. That works. But it is still very cumbersome. :(

Why normal C++ objects in class is private = cant manipulate outside class.