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.
IndexProgramming Questions & HelpSyntax Questions › locations in text...
Page Index Toggle Pages: 1
locations in text... (Read 592 times)
locations in text...
May 30th, 2005, 6:27pm
 
Hi everyone, I'm new with processing, just getting started. I love this project, it's fantastic!

I'm currently working on a small blog like project (Eclipse+processing). It's still in it's infancy much of the design is finished, and I know how to implement most of it at least in principle, though I haven't done much of the actual coding yet.

I would like to use Processing as my front end but there is one tricky part in this, I need to print out text and display a custom widget at a certain location within the text. Think along the lines of making every fullstop a clickable button.

Can anyone think of a decently noninsane way (in Java or Processing) to do this? I don't really fancy getting my hands dirty on the innards of the font drawing.
I'm thinking something like write the text to that position get a sort of text_cursor.current_position(), and place my widget relative to that...

cheers,
Frank.
Page Index Toggle Pages: 1