I’ve just started on my first Juce app. Comming from an MFC background Juce seems a lot cleaner and lighter.
In my application I have a lot of ‘stuff’ to draw. Let’s say this requires an area of 4000x4000 pixels. My application window is much smaller, so the logical thing (?) would be to add a ViewPort, which I did using the Jucer. I also found out that you can add a component to the viewport with the setViewedComponent function. But what would be the best component to add in my situation ?
For now I have created a class inheriting from ‘Component’ and used this as parameter for setViewedComponent. In the constructor of the new class I use setSize(4000, 4000). That all seems to work well. But where do I draw to ? Is the paint method of my class called automagically ?
In the Jucer you can set the content field of a Viewport to point to some Jucer file. That didn’t seem to work for me. What kind of file should I specify here?