public IScriptEditorControl CreateScriptEditor(Point position, Size size) { if (!_messageLoopStarted) { // This is because the splash screen uses a different message loop, // the scintilla control gets reset when the new message loop starts // if it has already been created. throw new AGSEditorException("A script editor cannot be created from within a component constructor because the GUI system is not yet initialized. You should do a just-in-time creation of your ContentPane rather than creating it at component construction."); } ScintillaWrapper scintilla = new ScintillaWrapper(); scintilla.Location = position; scintilla.Size = size; scintilla.SetKeyWords(Constants.SCRIPT_KEY_WORDS); scintilla.SetFillupKeys(Constants.AUTOCOMPLETE_ACCEPT_KEYS); scintilla.AutoCompleteEnabled = true; scintilla.AutoSpaceAfterComma = true; scintilla.CallTipsEnabled = true; return scintilla; }