Skip to main content
Roger.ch
Associate III
Jan 15, 2023 3:05 PM UTC
Solved

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

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.

This topic has been closed for replies.
MM..1
MM..1Best answer
Super User
Jan 15, 2023 3:11 PM UTC

Simply create method in container

3 replies

MM..1
MM..1Best answer
Super User
Jan 15, 2023 3:11 PM UTC

Simply create method in container

Roger.ch
Roger.chAuthor
Associate III
Jan 15, 2023 4:04 PM UTC

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

MM..1
Super User
Jan 15, 2023 4:09 PM UTC

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