array of numberboxs
in
Contributed Library Questions
•
2 years ago
Hi all, I tried to create 2d of numberbox (exemple 6 x 16)
So far I have encountered two problems. The Number boxes show a floating point and I can not target a Numberbox to write into it.
For reading I use Numberbox.Id from I P5control library ..
Maybe it's better to use a command from classical processing library ?
Here is an initialization Numberbox.
Someone Can Help me! ;)
Thank you !
Sam
I know it's not the best way to do it.
For reading I use Numberbox.Id from I P5control library ..
Maybe it's better to use a command from classical processing library ?
Here is an initialization Numberbox.
Someone Can Help me! ;)
Thank you !
Sam
I know it's not the best way to do it.
- int x,y = 0 ;
int xSpace = 65; // espace entre colone
int Valueinit = 128;
for (x = 0 ; x < 16 ; x++)
{
for (y = 1 ; y < 6 ; y++)
{
char data[] = {32};
String str2 = new String(data);
controlP5.addNumberbox(str2,(int)valueinit,70+ (xSpace * x),60 + ((y-1) *16),60,12).setId(y + (10 *x));
controlP5.controller(str2).setMax(255);
controlP5.controller(str2).setMin(0);
}
}
1