When you create a Method, (also known as a Function), you do not type in the words Public Function and End Function in the code section. Those are part of the Method and not normally seen unless you copy the Method and paste it in a text document or the Forum here. The Function parameters are put in the parameters box on the right and the return type in the return field. There is no bug. You typed in something not needed.
This is very nice, something interesting though in the example provided.
The main popup says:
On Windows, the “Blah” button looks bad because it isn’t treated as transparent. But the “MsgBox” button looks good because it is inside a Rectangle control (the fillcolor is set in the window.activate event). This problem also happens with checkboxes and possibly other controls too.
You don’t need to enclose controls in a Rectangle on Mac, but it doesn’t hurt. You can just have one big rectangle behind all the controls.
Interestingly, the Move me button looks fine on Windows, but the Blah and the MsgBox buttons take a bit to draw themselves, any idea on why the differences? I mean I would get if the MsgBox and the Blah buttons were different, but they both behave the same way. This is with the latest version of Xojo if that matters.