Applies to
InkEdit, RichText controls
Description
Specifies whether the text in the control has been modified since it was opened or last saved. Modified is the control's "dirty" flag, indicating that the control is in an unsaved state.
Usage
The value of the Modified property controls the Modified event. If the property is false, the event occurs when the first change occurs to the contents of the control. The change also causes the property to be set to true, which suppresses the Modified event. You can restart checking for changes by setting the property back to false.
In scripts
The Modified property takes a boolean value. The following example sets the Modified property of the InkEdit control ie_1 to false so that the Modified event is enabled:
ie_1.Modified = FALSE
Applies to
RibbonComboBoxItem controls
Description
Specifies a user event as the Modified event of the RibbonComboBoxItem. The RibbonComboBoxItem control requires that the modified event have a long parameter for receiving the handle of the combo box. For how to define the Modified user event for RibbonComboBoxItem controls, see Modified in PowerScript Reference.
Usage
In scripts
The following scripts bind the
ue_ComboBoxPageSizeModified
user event with the Modified
event of the combo box.
Long ll_Handle_Category, ll_Handle_Panel, ll_Handle_ComboBox RibbonComboBoxItem lr_ComboBox ll_Handle_Category = rbb_1.InsertCategoryFirst ("MyCategory") ll_Handle_Panel = rbb_1.InsertPanelFirst (ll_Handle_Category, "MyPanel", "AddSmall!") lr_ComboBox.Label = "Page Size" lr_ComboBox.PictureName = "PageSizeSmall!" lr_ComboBox.SelectionChanged = "ue_ComboBoxPageSizeSelectionChanged" lr_ComboBox.Selected = "ue_ComboBoxPageSizeSelected" lr_ComboBox.Modified = "ue_ComboBoxPageSizeModified" ll_Handle_ComboBox = rbb_1.InsertComboBoxFirst (ll_Handle_Panel, lr_ComboBox)
In the XML file
You can also bind the ue_ComboBoxPageSizeModified
user event with the Modified event of the combo box using the XML
file:
<ComboBox PictureName="PageSizeSmall!" Label="Page Size" Modified="ue_ComboBoxPageSizeModified" Selected="ue_ComboBoxPageSizeSelected" SelectionChanged="ue_ComboBoxPageSizeSelectionChanged">