Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » Spelling Dictionary?
Re: Spelling Dictionary? [message #21867 is a reply to message #21865] Mon, 08 June 2009 19:41 Go to previous messageGo to previous message
jeremy_c is currently offline  jeremy_c
Messages: 175
Registered: August 2007
Location: Ohio, USA
Experienced Member
Ok, this is working now, thanks. Is this the right way to handle this problem?

String content = GetFromDb(); // dummy function for example sake

if (content.Find("[%EN-US") == -1)
{
    content = "[%EN-US " + content " +]");
    UpdateDb(content); // dummy function again
}

editor.SetData(content);


That seems a bit unintuitive. It is nice, however, that each document can contain it's own language attributes, however, I would think maybe RichEdit should contain a default language setting that if the doc does not specify, use it? i.e.

editor.SetDefaultLanguage("EN-US");


?

Jeremy
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Editor Toolbar
Next Topic: Spelling Button on RichEdit
Goto Forum:
  


Current Time: Fri May 17 21:12:09 CEST 2024

Total time taken to generate the page: 0.02484 seconds