Text field vertically
in
Contributed Library Questions
•
7 months ago
Hi all,
I'm trying to create text field in which the written text appears vertically.
Is possible?
The code is:
import controlP5.*;
ControlP5 cp5;
Textfield Fieldtest;
void setup() {
size(400,400);
background(0);
PFont font = createFont("arial",16);
cp5 = new ControlP5(this);
Fieldtest=cp5.addTextfield("test")
.setPosition(50,50)
.setSize(14,50)
.setFont(font)
.setFocus(false)
.setAutoClear(true)
.setColor(color(255,0,0))
;
Fieldtest.setInputFilter(ControlP5.INTEGER);
}
void draw() {
background(0);
}
1