BindGadgetEvent(5,@Button_Callback()) ; Notice the brackets
BindGadgetEvent(5,@Button_Callback) ; Compiler does not give error if brackets are missing!
Your both Syntax a correct, but not the same. @Button_Callback can hold the adress to a callback.
PureBasic 5.73 LTS | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.