create a custom widget using code in stm32cubeide
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-14 2:48 AM
Is it possible to create a custom widget in touchgfx using code, specifically in stm32cubeide? I would like to start with a blank screen and add a custom widget that I design through code. What are the steps involved in achieving this, including creating the widget class, integrating it into the screen, and ensuring it functions correctly?
Solved! Go to Solution.
- Labels:
-
TouchGFX
-
TouchGFX Designer
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-14 6:00 AM
Hello @Ismails and welcome to the community!
To create a custom widget, the simplest way is to open TouchGFX Designer, create a new project.
Then, on your application, just go to the "Containers" tab and click on the "+" icon :
Then, you can add shapes, images, etc that you will need for your custom widget.
Then, click on "Generate code":
Then you can open the folder where your project is inside your favorite text editor or IDE (in that case, STM32CubeIDE):
The custom container code will be under TouchGFX => gui => source => container.
From there you can code custom behavior.
I hope this help!
If this comment answers your question, I invite you to select it as "best answer". :smiling_face_with_smiling_eyes:
Regards,
Software engineer at ST (TouchGFX)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-14 6:00 AM
Hello @Ismails and welcome to the community!
To create a custom widget, the simplest way is to open TouchGFX Designer, create a new project.
Then, on your application, just go to the "Containers" tab and click on the "+" icon :
Then, you can add shapes, images, etc that you will need for your custom widget.
Then, click on "Generate code":
Then you can open the folder where your project is inside your favorite text editor or IDE (in that case, STM32CubeIDE):
The custom container code will be under TouchGFX => gui => source => container.
From there you can code custom behavior.
I hope this help!
If this comment answers your question, I invite you to select it as "best answer". :smiling_face_with_smiling_eyes:
Regards,
Software engineer at ST (TouchGFX)
