Skip to main content
Roger.ch
Associate III
January 15, 2023
Solved

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

  • January 15, 2023
  • 3 replies
  • 1030 views

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.
Best answer by MM..1

Simply create method in container

3 replies

MM..1
MM..1Best answer
Super User
January 15, 2023

Simply create method in container

Roger.ch
Roger.chAuthor
Associate III
January 15, 2023

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

MM..1
Super User
January 15, 2023

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