Skip to main content
Rodo
Senior
August 3, 2023
Question

ToucgGFX How to add virtual functions from designer to code automatically?

Hi all,

I'm making my project and adding screens and stuff and I noticed that if I add an interaction to a button as a virtual function, and add a function name, the function does not get automatically added to the code in the *.hpp and *.cpp files for that screen. I end up having to go back and forth between the designer and cubeIDE to copy/past the function names to the files. I had like 15 functions to add. Am I missing a setting somewhere to autogenerate the virtual function names in the files or it is suppose to be manually done?

Thanks

This topic has been closed for replies.

1 reply

Graduate II
August 3, 2023

Hello

Ready declarations can be found on the view class base .hpp- file under gui_generated folder (for example Screen1ViewBase.hpp).

It is bit easier to copy those there to view class hpp / cpp.

Br J.T