How to Change the Text of Button

edited January 2017 in Library Questions

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

Sign In or Register to comment.