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.
Page Index Toggle Pages: 1
Text box (Read 1600 times)
Text box
Apr 4th, 2010, 7:39pm
 
I'm new to Processing, and right now I'm working on my first interactive project. I've never had to use a GUI before, so I'm having some trouble. I need to draw a text box that users can type into (just like the one used to post to this forum), but I just can't figure it out. From the preliminary searches I've done, it seems like the best way would be to use a GUI library, but I don't know which one would best suit my purposes and I haven't been able to get the ones I've downloaded to work (most likely due to my lack of understanding of how to implement them). Does anyone have advice on a library to use or an easy way to code this?
Re: Text box
Reply #1 - Apr 4th, 2010, 8:05pm
 
I wrote this for someone with similar needs:

http://benhem.com/dev/entryFields/

you can remove the "is this a float" check if that's not needed.
Re: Text box
Reply #2 - Apr 5th, 2010, 9:09am
 
I looks awesome!

How can we see the source code?
Re: Text box
Reply #3 - Apr 5th, 2010, 10:39am
 
Link to source is on the page :)
Re: Text box
Reply #4 - Apr 5th, 2010, 11:24am
 
ControlP5 and G4P are both fairly popular and up to date.
Re: Text box
Reply #5 - Apr 17th, 2010, 9:55am
 
ben_hem wrote on Apr 4th, 2010, 8:05pm:
I wrote this for someone with similar needs:

you can remove the "is this a float" check if that's not needed.



Great text box! I'm fairly new to programming too, I'm not very familiar with your vector code.

How do I access the information from the text field after its entered
Page Index Toggle Pages: 1