bdeCreateEditor

Creates a text editor.

Syntax

textEditorDialog = bdeCreateEditor(widget, modal, editorType, readOnly, handleFilePathModified)

Inputs

widget
The top level widget. Use bdeGetTopLevelWidget.
Type: uiWidget
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.
Type: Boolean
editorType
The type of the editor. Can use BDE_C_EDITOR, BDE_OML_EDITOR, BDE_MO_EDITOR, or BDE_TEXT_EDITOR.
Type: EditorType
readOnly
Boolean representing if the editor is set to be read only. true for read only, false to be read only.
Type: Boolean
handleFilePathModified
Boolean that represents if a modified file path can be handled by the function. true to handle, false to not handle.
Type: Boolean

Outputs

textEditorDialog
The text editor that is created.
Type: hwscpTextEditorDialog

Examples

Create a text editor:

          widget = bdeGetTopLevelWidget();
          textEditorDialog = bdeCreateEditor(widget, true, BDE_OML_EDITOR, false, true);
        

          
            textEditorDialog = hwscpTextEditorDialog