Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
pvrego
pvrego's Profile
2
Posts
2
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Control a button activation using keyboard
[2 Replies]
17-Feb-2013 11:18 AM
Forum:
Contributed Library Questions
Hello guys,
Using ControlP5 library, I am trying to control the activation of a button using the keyboard, so when a key is pressed, I want the button to be active.
So I created the object
ControlP5 myControl;
// (...)
myControl = new ControlP5(this);
myControl.addButton("special button", 1, 100, 200, 100, 200);
and in draw() method I am trying to do like
if (keyPressed) {
if (key=='8') myControl.getController("special button").setOn();
}
However, I receive the message
The function setOn() does not exist
So, what did I miss?
Thanks in advance.
ControlP5 default colors
[2 Replies]
15-Feb-2013 07:48 PM
Forum:
Contributed Library Questions
Hi guys,
I am trying to find the default colors for ControlP5 controls, when I instance something using
myControls = new ControlP5(this)
instead of
myControls = new ControlP5(this).setColorForeground(.....).setColorBackground(.....)
.setColorLabel(.....).setColorValue(.....).setColorActive(.....);
Could some tell me?
Thanks in advance.
«Prev
Next »
Moderate user : pvrego
Forum