Hello!
This has not to do with tabs but with the nested classes
, but
yes, you can refer to a PApplet object from a nested class.
Just declare a global var in setup(), set it to "this" and use it in any class you like.
So in setup():
- thisVarPointsToMainClass = this;
in any class instead of "this" just use "thisVarPointsToMainClass".
I know, it's not beautiful but it works.
Alternatively
Alternatively you can pass "this" as a parameter to the constructor (or even method?) of the class
and store it there. Then you avoid a strange global var...
Greetings, Chrisir