This commit is contained in:
parent
b4d6118af8
commit
bbed806edb
BIN
PROMS/VEPROMS User Interface/veproms.dct
Normal file
BIN
PROMS/VEPROMS User Interface/veproms.dct
Normal file
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
using System.IO;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
@ -2698,6 +2698,18 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
_C1SpellChecker2 = new C1.Win.C1SpellChecker.C1SpellChecker();
|
_C1SpellChecker2 = new C1.Win.C1SpellChecker.C1SpellChecker();
|
||||||
_C1SpellChecker2.ContextMenuCreated += new C1.Win.C1SpellChecker.ContextMenuEventHandler(_C1SpellChecker2_ContextMenuCreated);
|
_C1SpellChecker2.ContextMenuCreated += new C1.Win.C1SpellChecker.ContextMenuEventHandler(_C1SpellChecker2_ContextMenuCreated);
|
||||||
|
// The veproms.dct file is the main spell checker dictionary.
|
||||||
|
// We edited the C1 dictionary (C:\Program Files\ComponentOne\Dictionaries\C1Spell_en-US.dct) using ComponentOne's
|
||||||
|
// dictionary editor (C:\Program Files\ComponentOne\Studio for WinForms\C1SpellChecker\C1DictionaryEditor.exe)
|
||||||
|
// and added the veproms.words list as another word list in the dictionary. We saved the resulting file as veproms.dct.
|
||||||
|
string dictpath = string.Format(@"{0}\veproms.dct", Application.StartupPath);
|
||||||
|
|
||||||
|
// Only use the veproms.dct if it is found in the BIN folder. Otherwise, let it default to use the standard dictionary.
|
||||||
|
if (File.Exists(dictpath))
|
||||||
|
_C1SpellChecker2.MainDictionary.FileName = dictpath; // looks in the bin folder by default
|
||||||
|
|
||||||
|
// NOTE: By default, a "Custom.dct" file (UserDictionary) will be created in the BIN folder when a user adds words to the
|
||||||
|
// spell checker dictionary. The words that the user adds are not placed in the Volian.dct file.
|
||||||
//_C1SpellChecker2.UserDictionary.FileName = @"C:\Development\proms\VEPROMS User Interface\bin\Debug\MYDictionary.dct";
|
//_C1SpellChecker2.UserDictionary.FileName = @"C:\Development\proms\VEPROMS User Interface\bin\Debug\MYDictionary.dct";
|
||||||
}
|
}
|
||||||
return StepRTB._C1SpellChecker2;
|
return StepRTB._C1SpellChecker2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user