In other words “DesktopApplication” is the name of the class, but this method has to be called on an instance of the class. In this case, the App global variable is a reference to the instance:
Say you have a class called FooBar with a method named DoStuff. If you try to call the DoStuff method on the name of the class itself, you’ll get an error:
FooBar.DoStuff() // Static reference to instance method
You have to create an instance of the class and use that:
So, yeah, I used “DesktopApplication.ShowTooltip.” I still don’t know why that doesn’t work and what works is “App.ShowTooltip”. I’m a beginner; a beginner’s life is full of surprises.
The nice thing about Xojo is that you can type DesktopApplication. after the dot you can press TAB to see what is available. You will not see ShowTooltip as an option. If you type App. then TAB you will see many options and one is ShowTooltip.