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

ControlP5 control labeling "Examples" automatic, mine not there

$
0
0

Learning ControlP5 a bit painful but that's OK except for occasional puzzles such as:

In CP5 examples the creation of a toggle control is this:

      cp5.addToggle("toggle")
         .setPosition(40,250)
         .setSize(50,20)
         .setValue(true)
         .setMode(ControlP5.SWITCH)
         ;

This generates not only the default coloration (black/blue) but places the "toggle" characters in all-caps below the graphic. My nearly-identical code is this:

    cp5.addToggle("run-pause")
       .setPosition(900, 50)
       .setSize(50, 40)
       .setValue(true)
       .setMode(ControlP5.SWITCH)
       ;

It creates the expected blue/black widget but no "RUN-PAUSE" text below the control. Why? Sure, I can add a text label and would do so to provide better captions for certain controls but it's still a puzzle.


Viewing all articles
Browse latest Browse all 2896

Trending Articles