We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi All--
I am trying to center the label on a controlP5 button. Any ideas on how to do this? Here is my code:
import controlP5.*;
ControlP5 controlP5;
void setup()
{
controlP5 = new ControlP5(this);
size(200, 200);
controlP5.addButton("Load", 0, 40, 40, 120, 120).setCaptionLabel("Load \nFile");
}
void draw()
{
}
I was trying to used the align method inherited from the Controller class but I can't get it to do much:
align
public java.lang.Object align(int theCaptionX,
int theCaptionY,
int theValueX,
int theValueY)