We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Following is the code snippet
`cp5.addButton("Login")
.setPosition(675, 10)
.setSize(100, 70)
.setFont(myFont)
.getCaptionLabel().align(ControlP5.CENTER, ControlP5.CENTER)
; `
Is there a way to change the text "Login" to "Logout" or vice-versa?
Answers
I think Button.setLabel(String theString) does that.