bdeCreateEditor
Creates a text editor.
Syntax
textEditorDialog = bdeCreateEditor(widget, modal, editorType, readOnly, handleFilePathModified)
Inputs
- widget
- The top level widget. Use bdeGetTopLevelWidget.
- modal
- A boolean that represents whether or not you can click on anything behind the editor window. true to only be able to use the editor window, false to be able to use the editor window or anything behind it.
- editorType
- The type of the editor. Can use BDE_C_EDITOR, BDE_OML_EDITOR, BDE_MO_EDITOR, or BDE_TEXT_EDITOR.
- readOnly
- Boolean representing if the editor is set to be read only. true for read only, false to be read only.
- handleFilePathModified
- Boolean that represents if a modified file path can be handled by the function. true to handle, false to not handle.
Outputs
- textEditorDialog
- The text editor that is created.
Examples
Create a text editor:
widget = bdeGetTopLevelWidget();
textEditorDialog = bdeCreateEditor(widget, true, BDE_OML_EDITOR, false, true);
textEditorDialog = hwscpTextEditorDialog