cancel
Showing results for 
Search instead for 
Did you mean: 

Hey Guys! Is there any way to change a selected simulator skin image while running the simulator?

MBrau.7
Associate II
 
2 REPLIES 2
Osman SOYKURT
ST Employee

Hello MBrau.7,

I'm not sure what do you mean by "change a selected simulator skin image". Can you elaborate a bit more please 🙂

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX
MBrau.7
Associate II

Hey Osman!

Sorry for my imprecise question 😅

In the TouchGFX Designer you can select a skin which is used

as a static background image for a running simulation. I wanted to

change this image while running the simulation if e.g. a button is

clicked. Found the solution for myself:

I have extended the HALSDL2 class with a custom loadSkin()-function,

where i pass the name of a skin image. I just have to specify the desired

images i want to use in the Makefile. When setting the first skin, it is necessary

to call the recreateWindow()-function. When changing the skin a second, third, ... time

you can just call the SDL_SetWindowShape()-function.