I'd like to make some interactive sketches to do some form-finding exercises. I've got a first, basic sketch working in v1.5, with iGeo. It's been a year or so since I last worked with P5 and that library. Has there been any update or work-around that lets you interact with the iGeo windows more directly? Right now I'm driving it from a couple of ControlP5 windows, but it's kind of a clumsy solution.
If iGeo still don't support this, is there a better combination of libraries or tool worth looking at?
More generally, I'm curious if there any general best practices or design patterns for this type of work have emerged.
I now have code that can tell if text has been selected. I'd like to be able to apply a highlighter effect, with different colours.
My cursory poking through the GUI4P classes seems to suggest this isn't something that's supported. Right now I'm putting together a work-around that involves transparency and drawing boxes on top of the text field.
[I've just started looking at different libraries that support text entry -- Gui4P seems the most promising at the moment, but if interfascia or ControlP5 is better for this application, I can switch.]
I'd like to be able to input text and then keep track of user selection-highlighting (done either through user mouse-dragging or shift+cursor key).
Poking through G4P, I've found that the .getFocusObject() method returns the relevant information from a text field, but I'm having datatype troubles:
println(txfML1.getFocusObject());
works like a charm, but if I try something like:
String info = txfML1.getFocusObject();
It returns a "cannot convert from GComponent to String" error.
What do I need to do to here?
[I'm just working with the standard G4P textfield demo code, from quark's website: