StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Populating RichTextBox contentExpand / Collapse
Author
Message
Posted 10/20/2006 4:28:44 PM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 07/09/2007 2:48:58 PM
Posts: 57, Visits: 107
Working on an idea with a wizard with some fairly complicated individual steps. I need to provide the user some explanation on each form, and would ideally do this using RTF where I can apply some formatting to the explanation, etc. I've been down the road of storing this kind of thing in individual RTF files on the client and loading the appropriate file at the appropriate time, but it seems kind of a kludge to do that when there is nice support in the framework for messaging lookups by key.

Can I use the Messaging & Localization stuff to store the RTF and pipe it into the RichTextBox at runtime by key?

Or is it just going to give me plain old text with no rich markup?

Thanks!

Post #3735
Posted 10/20/2006 10:10:10 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 10:13:07 AM
Posts: 4,799, Visits: 4,768
Well there are a number of ways to do this.  There are two types of localization items: messages and text values.  All messages are RTF and maintain the formatting.  They are generally used for message box items.  But you can use them in this context as well.  For example, you can create a message and pull it from the localization database like this:

MyRTFControl.RTF = MicroFour.StrataFrame.UI.Localization.RetrieveMessage("MyMessageKey").Text

This would allow you to use the localization interface and still keep the RTF formatting. 

You can also bind our RTF control directly to a field in a table that has the RTF data as well.  Let me know if this does not answer your question.

Post #3741
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 11:07am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.