We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Pages: 1 ... 4 5 6 7 8 ... 17
controlP5 (Read 126749 times)
Re: controlP5
Reply #75 - Jun 3rd, 2008, 12:39am
 
thanks sojamo, works like it should now.
Re: controlP5
Reply #76 - Jun 3rd, 2008, 1:24am
 
While I'm making requests.......

I've noticed my buttons in ControlP5 seem to be lacking in visual feedback.

For example, when coding a button in flash it has (at least) 3 states - UP (i.e. normal) OVER (hovering on the button) and HIT (button is pressed).

with controlP5:

.setColorBackground(color1) allows us to change the UP position.

.setColorActive(color1) allows to change the OVER position.

it does not appear that we are able to change the HIT color. could we create a setColorPressed method?


also with radio buttons, is there a way to change the color of selected and hovering radio buttons from the default orange?
Re: controlP5
Reply #77 - Jun 3rd, 2008, 9:10pm
 
Hey all,

is there a way to add images to a specified tab?

Would be cool!

Thx in advance
Re: controlP5
Reply #78 - Jun 4th, 2008, 11:44am
 
Better: Adding an image to a specified group?
Re: controlP5
Reply #79 - Jun 5th, 2008, 7:39am
 
i updated to 0.2.9 there is a new class, ControlCanvas, that can be extended by a custom class in your sketch, then this class can be added to a group or tab to draw custom graphics.
there is an example ControlP5groupCanvas which should give an idea how to use ControlCanvas. bare in mind ControlCanvas is yet experimental and will undergo changes in the future before being properly implemented. same goes for ControlWindowCanvas.
hope this helps,
andi

Re: controlP5
Reply #80 - Jul 24th, 2008, 11:37pm
 
I was wondering, how do I get two sliders to control two
different things (other than change the color of the window)? What I'm trying to do is use the sliders and their values to control two motors. However when I type:

if (sliderValue > 0) {
 port.write(20);
}

it applies to only one of the sliders. So, how do I get the second one to function in the same way?
Re: controlP5
Reply #81 - Aug 14th, 2008, 11:24am
 
Hi andi,

Many thanks for this exciting library !

I'm currently experimenting with controlP5.
My project is to build a form interface.
I'm currently stuck with these tabs' problems:

- Is it possible to resize tabs (in width at least) ?
- Is it possible to set tabs' position ?
(tried with setPosition with no success)

I'm sorry not being able to help from source.
Matter of time here too.

Best regards,
Olivier
Re: controlP5
Reply #82 - Aug 19th, 2008, 6:41am
 
controlP5 has been updated to 0.3.0 to be compatible with processing versions 146+.
mini changes:
(1) the width of tabs can be set with e.g.
controlP5.tab("default").setWidth(100);
(2) the stroke weight issue for knobs has been fixed.

best,
andreas
Re: controlP5
Reply #83 - Aug 19th, 2008, 10:00am
 
great ! it works ok for me with 146 so far Smiley

Re: controlP5
Reply #84 - Aug 19th, 2008, 1:52pm
 
wicked !

Thx a lot.
Re: controlP5
Reply #85 - Aug 25th, 2008, 7:58pm
 
If you're looking for a similar font (that is free and cross-platform), I suggest checking out Advocut: http://www.dafont.com/advocut.font

I started using it on my current project, and aside from a few letters being a couple pixels wider, it's practically identical to the font being used in controlP5.
Re: controlP5
Reply #86 - Aug 28th, 2008, 9:58pm
 
Hello everyone! Sorry for my english at first. I found processing some weeks ago and controlP5 library is very cool. What I tried to do is 3d sketch with GUI in controlwindow. Sliders work perfect, but I have a problem with textfield located in control window. Its just not working. No events detected while typing. I tried focus. I found groupCanvas example and it is for "plan B". But is there any simple solving. Im doing like this. Thanks for any replys.

import controlP5.*;

ControlP5 controlP5;

ControlWindow controlWindow;
String textValue = "";
Textfield myTextfield;
public int sliderValue = 40;

void setup() {
 size(400,400);
 frameRate(25);
 controlP5 = new ControlP5(this);
 controlP5.setAutoDraw(false);
 controlWindow = controlP5.addControlWindow("controlP5window",100,100,400,400);
 controlWindow.setBackground(color(40));
 Controller mySlider = controlP5.addSlider("sliderValue",0,255,40,40,100,10);
 mySlider.setWindow(controlWindow);
 myTextfield = controlP5.addTextfield("texts",40,70,200,20);
 myTextfield.setFocus(true);
 myTextfield.setWindow(controlWindow);
}

void draw() {
 background(sliderValue);
 controlP5.draw();
texts(myTextfield.getText());
}

void controlEvent(ControlEvent theEvent) {
 println("got an event from "+theEvent.controller().name());
 println(theEvent.controller().stringValue());
}

void mousePressed() {
 println(myTextfield.getText());
}

public void texts(String theText) {
 println("a textfield event. "+theText);
 println("textValue : "+textValue);
}
Re: controlP5
Reply #87 - Aug 29th, 2008, 3:35am
 
this is indeed not working and not good. will fix it asap and let you know.
@datadreamer thanks for sharing the advocut font, one of the todos is to have more choices of pixel fonts within controlP5 and dafont.com seems to be a good resource for that.
Re: controlP5
Reply #88 - Aug 29th, 2008, 5:13am
 
Andreas, thanks for your quick reply and great work.
Re: controlP5
Reply #89 - Oct 21st, 2008, 6:43pm
 
First of all, I am really impressed by this library! Very slick and clean Smiley

Second, I'm having a problem catching the correct events from a MultiList.
The problem is even showing in the example of the MultiList (http://www.sojamo.de/libraries/controlP5/examples/ControlP5multiList/ControlP5multiList.pde).
It seems that there are being thrown events for the entire branch down from the selected MultiListButton and, more strangely, the events thrown seem to be somewhat random (or at least depending on the previously clicked items).

I'm hoping to use the MultiList for a menu selection system, so I need the correct event.
Any ideas? Thanks in advance! Smiley

EDIT: Oops, I noticed that I replied in a wrong forum category! I made a new thread for this topic here: http://processing.org/discourse/yabb_beta/YaBB.cgi?board=LibraryProblems;action=display;num=1224623395
Pages: 1 ... 4 5 6 7 8 ... 17