From the page on buttons:

Quote:
Several buttons may share the same function. The number of the button is passed as the first parameter to the function (1 = first button), the panel pointer is passed as the second parameter.


This is very helpful, but it would also be useful to see an example of a button function that employs one of these parameters. It was confusing for me, a long-time 3DGS user, let alone a beginner, to see this and think, "Wait, so these parameters are passed to my function even though I have defined my function as though there are no parameters? How do I access these values?"

The parameter passing is a very useful feature and it would be great if it was clearer exactly how to use them.

FYI, I figured it out in the end. I changed my function definition from "function bfunction()" to "function bfunction(var buttonnumber, PANEL* p)" and accessed them that way. A beginner may not know to try this.