function ButtonPress(State)
print("Button was pressed")
end
Page1:newBtn("Toggle Button!", ButtonPress, false) -- false will indicate if it is a normal button.
Normal Button:
function ButtonPress(State)
print("Button was pressed")
end
Page1:newBtn("Normal Button!", ButtonPress, true) -- true will indicate if it is a normal button.