TL_ElementProperties (Text List) ¶
GVL_ErrorTexts (GVL) ¶ This GVL contains error texts of the text editor corresponding to the error codes. The naming convention of the constants is ERRTEXT_<GVL_ErrorCodes-Constant> Attributes: qualified_only InOut: Scope Name Type Initial Comment Constant ERRTEXT_NO_ERROR STRING(2) ‘’ No error ERRTEXT_TECHNICAL_ERROR STRING ‘Technical error occurred. See log output of runtime system’ Error text for all technical errors ERRTEXT_LINE_FULL STRING ‘The line has reached the maximum length’ Errors, that can occur during editing the text ERRTEXT_TOO_LONG_LINES STRING ‘File to read has lines longer than the specified maximum line length’ ERRTEXT_TOO_LONG_LINE_AFTER_DELETE_SEL STRING ‘Unable to delete the selection, because the resulting line would be too long’ ERRTEXT_TOO_LONG_LINE_AFTER_DELETE_CHAR STRING ‘Unable to delete the character, because the resulting line would be too long’ ERRTEXT_UNICODE_IN_ASCII_FILE STRING ‘You cannot enter an unicode character in an ascii file’ ERRTEXT_SEARCH_TEXT_NOT_FOUND STRING ‘Text to search not found’ Errors, that can occur during searching ERRTEXT_SEARCH_TEXT_EMPTY STRING ‘No text to search specified’ ERRTEXT_LINE_WITHOUT_RANGE STRING ‘Specified line does not exist in file’ Errors, that can occur during selecting a line ERRTEXT_FILE_NOT_FOUND STRING ‘The file to open does not exists’ ERRTEXT_NEGATIVE_LINE_TO_SET STRING ‘The caret cannot be set into a line before the first line’ Errors, that can occur when setting the caret programatically ERRTEXT_TOO_LARGE_LINE_TO_SET STRING ‘The caret cannot be set beyond the last line’ ERRTEXT_NEGATIVE_COLUMN_TO_SET STRING ‘The caret cannot be set into a column before the leftmost column’ ERRTEXT_TOO_LARGE_COLUMN_TO_SET STRING ‘The caret cannot be set beyond the last possible column’ ERRTEXT_NO_SELECTION_TO_COPY STRING ‘Cannot copy text into clipboard, because no text is selected’ Errors, that can occur during copy/paste ERRTEXT_INVALID_CLIPBOARD_FORMAT STRING ‘Current clipboard content cannot be pasted into the texteditor’ ERRTEXT_PASTE_UNICODE_INTO_ASCII STRING ‘Cammot paste unicode text into ascii text’ ERRTEXT_TOO_LONG_LINE_AFTER_PASTE STRING ‘Cannot paste into the texteditor, because would result in too long line(s)’
TL_ElementProperties (Text List) ¶
VisuFbElemTextEditor (FB) ¶ FUNCTION_BLOCK VisuFbElemTextEditor EXTENDS VisuFbRectangularElement2 IMPLEMENTS IVisualElement, ISelectable, IClientManagerListener, IVisualElementProvidesSubElements, IFileTraverseConsumer, ILayeredVisualElement, IRequiresInitMeasureString InOut: Scope Name Type Initial Comment Input m_Font VisuStructTextEditorFont m_ControlVariables VisuStructTextEditorControlVariables m_iMaxLineLength INT 200 m_EditorEditMode VisuEnumTextEditorEditMode VisuEnumTextEditorEditMode.READWRITE m_NewFilesConfiguration VisuStructTextEditorNewFilesConfiguration m_iScrollbarSize INT 20 the width of the vertical scrollbar resp. the height of the horizontal scrollbar. Not configurable at the moment Methods: Checksum ClientCreated ClientDestroyed ElementInfo GetCompleteSurroundingRect GetSubElements GetUpdateRects HandleInput HandleOpenFailed Initialize IsSelectable PaintSelection SelectElement SetClientData SetErrorCode SetLayerManager Update prvAfterHandleInput prvAfterUpdate prvCheckResultingLineLengthsBeforePaste prvGetTextContainingArea prvIsMouseWithinTextContainingArea prvModifySelectionCurrentWord prvModifySelectionWithMouse prvModifySelectionWithMouse1 prvPasteIntoText prvRetrieveScrollbarValues prvSelectElementAndCaptureInputs Structure: IClientManagerListener ClientCreated (Method) ClientDestroyed (Method) IFileTraverseConsumer HandleOpenFailed (Method) SetErrorCode (Method) ILayeredVisualElement SetLayerManager (Method) ISelectable IsSelectable (Method) PaintSelection (Method) SelectElement (Method) IVisualElement Checksum (Method) ElementInfo (Method) GetUpdateRects (Method) HandleInput (Method) Initialize (Method) SetClientData (Method) Update (Method) IVisualElement3 GetCompleteSurroundingRect (Method) IVisualElementProvidesSubElements GetSubElements (Method) Private GetUpdateRects prvAfterHandleInput (Method) prvAfterUpdate (Method) HandleInput prvCheckResultingLineLengthsBeforePaste (Method) prvGetTextContainingArea (Method) prvIsMouseWithinTextContainingArea (Method) prvModifySelectionCurrentWord (Method) prvModifySelectionWithMouse (Method) prvModifySelectionWithMouse1 (Method) prvPasteIntoText (Method) Update prvRetrieveScrollbarValues (Method) prvSelectElementAndCaptureInputs (Method)
IClientManagerListener ¶ ClientCreated (Method) ClientDestroyed (Method)
VisuFbElemTextEditor.ClientCreated (METH) ¶ METHOD ClientCreated Notification, that a client has been created InOut: Scope Name Type Comment Input pClientData POINTER TO VisuStructClientData A pointer to a VisuStructClientData structure identifying the client, that has been created
VisuFbElemTextEditor.ClientDestroyed (METH) ¶ METHOD ClientDestroyed Notification, that a client has been destroyed InOut: Scope Name Type Comment Input pClientData POINTER TO VisuStructClientData A pointer to a VisuStructClientData structure identifying the client, that has been destroyed
IFileTraverseConsumer ¶ HandleOpenFailed (Method) SetErrorCode (Method)
VisuFbElemTextEditor.HandleOpenFailed (METH) ¶ METHOD HandleOpenFailed This method does the necessary steps if opening the text file failed. InOut: Scope Name Type Comment Input errorCode USINT The error code, that occurred
VisuFbElemTextEditor.SetErrorCode (METH) ¶ METHOD SetErrorCode This method sets the error code. InOut: Scope Name Type Input usiError USINT