Kacper Szmigiel wrote:
I get "variable przycisk of type Object" in line 26, during compiling. Why?
You get more than that. I'm going to take a guess that it's "undefined symbol." If so, then the error message is telling you exactly what's wrong, namely that you are trying to use a variable named przycisk but there is no such variable defined in that scope.
If that's not the rest of the error message, then please copy/paste the exact, complete message.