Skip to main content
Yunus ARI
Senior
October 8, 2019
Question

Flex Button give error in Custom Container

  • October 8, 2019
  • 2 replies
  • 2005 views

I'm trying to design a custom container which have a flex button. When I do that getting an error in CustomContainer.hpp [RO] folder.

Error message; <namespace "touchgfx" has no member "AbstractButton">.

private:
 
 /*
 * Callback Handler Declarations
 */
 void buttonCallbackHandler(const touchgfx::AbstractButton& src);
 void flexButtonCallbackHandler(const touchgfx::AbstractButtonContainer& src);
 
 /*
 * Callback Declarations
 */
 touchgfx::Callback<RegisterElementBase, const touchgfx::AbstractButton&> buttonCallback;
 touchgfx::Callback<RegisterElementBase, const touchgfx::AbstractButtonContainer&> flexButtonCallback;

Can you help me about that. Thanks in advance.

This topic has been closed for replies.

2 replies

Mathew Grabau
Associate II
October 8, 2019

Are you using designer? I added the following to the generated code:

#include <touchgfx/widgets/AbstractButton.hpp>

Though it needed to have the read-only attribute removed from the file of course.

Yunus ARI
Yunus ARIAuthor
Senior
October 8, 2019

Yes, I am using designer.​ Designer deleting it when I add something in read only files.

Mathew Grabau
Associate II
October 8, 2019

Yes, unfortunately that's the case. I use git to revert to a modified version once the designer overwrites it. I assume this is a bug in the designer. I hope it gets updated soon, but I've been saying that for a while. It seems the team has been very slow to provide updates.

Mathew Grabau
Associate II
October 15, 2019

@Martin KJELDSEN​  I cannot just post the code online unfortunately.