Yes this should be possible using tcltk.  Could you give a little more detail of what you are trying to do?  Are you putting the text in a text widget (mini-wordproccessor type window) or an entry widget (small, 1 line of text)?  The methods are a little different between them.  Also, do you want to click a button after making the selection to capture the text? or some other way to indicate that you have made the selection?

________________________________

From: r-help-bounces@r-project.org on behalf of ronggui
Sent: Mon 1/21/2008 2:02 AM
To: R-Help
Subject: [R] Need suggestions about GUI



What I want to do is:
1, creat a text box, insert text into that box.
2, select chunk of of the text by mouse, and link it to a lable. so I would
like a way to get that chunk of text.

Can I do such job with tcltk?  Any relavant tutorial materials?

Thanks

--
HUANG Ronggui

Bachelor of Social Work, Fudan University, China

Master of sociology, Fudan University, China

Ph.D. Student , CityU of HK,
http://www.cityu.edu.hk/sa/psa_web2006/students/rdegree/huangronggui.html

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



	[[alternative HTML version deleted]]

