Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

How to Change the Text of Button

$
0
0

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?


Viewing all articles
Browse latest Browse all 2896

Trending Articles