Unprecise error message in MakeButton
Posted: Fri Mar 27, 2026 6:20 pm
Errors in MakeButton's callback function table return -1 as the argument number.
Although the source of the message is relatively easy to find, I don't think this is ideal.
"Function expected in argument -1!"
Ralf
Although the source of the message is relatively easy to find, I don't think this is ideal.
Code: Select all
EnableLayers()
Box(0, 0, 50, 50, {Name="x"})
MakeButton(1, #LAYERBUTTON, "x", {OnMouseOver=Function() EndFunction, OnMouseOut=1})
Ralf