<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Retrieve Highlighted Value in a rich text box</title><link>https://www.infopathdev.com:443/forums/thread/56445.aspx</link><pubDate>Fri, 02 Jul 2010 00:36:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56445</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56445.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=56445</wfw:commentRss><description>&lt;p&gt;Hi Sauny,&lt;/p&gt;
&lt;p&gt;I think you want Word Smart Documents bound to XML schemas. Too bad Word lost the lawsuit against thast company in Texas and they had to dumbdown the feature, but take a look at Word - you should be able to do what you describe using a Word Smart Doc.&lt;/p&gt;
&lt;p&gt;In InfoPath, you can create structured forms. For a legal document (a contract), you could do a similar thing using dropdowns inserted between hardcoded text. Just type your text and insert a dropdown for the word you want to change. Dropdown is bound to the secondary data source. If you are trying to do something like translation, I recommend trying to find an off the shefl piece of software for that. &lt;/p&gt;
&lt;p&gt;Rich text controls cannot support the feature you want, but you could use the taskpane (rich client only) to provide a mechanism for replacing text in a rich text control with a list of pre-baked options. We did a form for a multi-speciality clinic that inserted medication names&amp;nbsp;into a prescription area. Unfortunately, text in a rich text control cannot be bound to a separate schema (it exists as XHTML in the form).&lt;/p&gt;
&lt;p&gt;Hope these ideas help a little. Sorry I couldn&amp;#39;t be more helpful.&lt;/p&gt;</description></item><item><title>Retrieve Highlighted Value in a rich text box</title><link>https://www.infopathdev.com:443/forums/thread/56410.aspx</link><pubDate>Wed, 30 Jun 2010 18:56:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56410</guid><dc:creator>sauny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56410.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=56410</wfw:commentRss><description>Hi all,

My apologies is this is way off the mark with respect to the group it should be posted in, but I have just started development with InfoPath and have come against a problem.  What I basically want to do is create some sort of Control which acts like a richtextbox.  However, my control needs to do a few things differently.  

When you highlight a section of text within the box, I want to be able to assign that a certain parameter. e.g. &amp;quot;The cow jumped over the moon&amp;quot;, I would like to highlight the &amp;quot;cow&amp;quot; and right click and select &amp;quot;Animal&amp;quot; from a list of entities.  That should then highlight &amp;quot;cow&amp;quot; in red and store the fact that the cow is an animal in the XML somewhere.

My question is, is this possible?  If so, how would I go about grabbing the currently highlighted text from the InfoPath control and then making just that selection red?  I can for go the right click menu for the time being and write a custom task pane in C# with a button on to mark the entity.

I hope that makes sense?!?

Dave</description></item></channel></rss>