cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't a custom container be used like a container created from within TouchGFX Designer

JHarding
Senior

Hello,

I'm back with some new questions! Thanks for always being helpful... here we go.

From within a class that I have extended the Container object, I am unable to simply use my object as such:

application().getCurrentScreen()->getRootContainer().add(myObj);

then my compiler throws this error:

no known conversion for argument 1 from 'modalBase*' to 'touchgfx::Drawable&'

If I try the same thing with a custom container that I created from within TouchGFX designer, I can compile just fine, and the code works as expected.

I am extending the Container object just as TouchGFX does:

class modalBase : public touchgfx::Container
{
public:
    modalBase();
    virtual ~modalBase() {}
    virtual void initialize();
protected:
 
private:
}

1 ACCEPTED SOLUTION

Accepted Solutions
JHarding
Senior

Not that I recall. I ended up using a crazy work around and don't have time to revisit this.

View solution in original post

2 REPLIES 2
Martin KJELDSEN
Chief III

Sorry i missed this.

Did you figure it out?

JHarding
Senior

Not that I recall. I ended up using a crazy work around and don't have time to revisit this.