shareDocumentFrom
shareDocumentFrom(original: JadeTextEdit);
The shareDocumentFrom method of the JadeTextEdit class specifies the JadeTextEdit object whose text buffer is shared by this object.
Use the original parameter to specify the text editor that this object is to share at run time.
This method links the receiver control to the text edit control specified in the original parameter so that both controls display the same text. Use this method to implement split windows, as shown in the following example.
mnuEditSplit_click(menuItem: MenuItem input) updating; begin menuItem.checked := not menuItem.checked; if menuItem.checked then jteSecond.shareDocumentFrom(jteSource); jteSecond.visible := true; else jteSecond.shareDocumentFrom(null); jteSecond.visible := false; endif; end;