Modified

[property icon] Modified

Set when text is modified by the user

Boolean property

Applies to: Rich Edit

Introduced in KCML version 5.02


[event icon] Modified() Event

Called when the user first modified text

Applies to: Rich Edit

Introduced in KCML version 5.02


>

Modified

This property is set to TRUE when the contents of the control have been modified. It can also be used to enable and disable the Modified() event handler. If this property is FALSE then the Modified() event handler is called.

This property when used in conjunction with the Modified() event handler is quite useful for enabling and disabling other controls when and if the contents of the RTF control are modified. For example you may wish to enable the "Save" and "Clear" buttons to allow the user to save or clear the contents of the control and at the same time you may want to disable the "Load" button.

- DEFEVENT Form1.rtfControl1.Modified()
  .btnSave.Enabled = .RTFControl1.Modified
  .btnClear.Enabled = .RTFControl1.Modified
  .btnLoad.Enabled = 1 - .RTFControl1.Modified
 END EVENT

RichEdit

This event handler is called when the contents of an RTF control have been modified. This event handler is only called if the Modified property is set to FALSE. The Modified property is automatically set to TRUE when the contents of the control are modified.

This event handler is quite useful for enabling and disabling other controls when and if the contents of the RTF control are modified. For example you may wish to enable the "Save" and "Clear" buttons to allow the user to save or clear the contents of the control and at the same time you may want to disable the "Load" button.

- DEFEVENT Form1.rtfControl1.Modified()
  .btnSave.Enabled = .rtfControl1.Modified
  .btnClear.Enabled = .rtfControl1.Modified
  .btnLoad.Enabled = 1 - .rtfControl1.Modified
 END EVENT

See also

Rich Edit methods, properties and events.