Thanks for the report. This was caused by a name collision.
In the project, the window has a method named Start, and the button is also named Start. The visual designer generates a window property for the control, effectively Property Start As Button. At runtime, Start() / Self.Start() could resolve to that generated button property rather than the method, so the VM tried to call a Button instance and produced the unhelpful “Can only call functions and classes” error.
This has now been fixed for the next release: https://feedback.objo.dev/bug/447
Objo will report this as a compile-time error instead:
Class 'Window1' defines both a property and a method named 'Start'. Rename one of them.
For current builds, the workaround is to rename either the control or the method, for example StartButton for the button and Start() for the method.