Hide

SftOptions 1.0 - ActiveX Options Control

Display
Print

Apply Button

While the SftOptions control manages all options, the application provides the remaining UI elements of the enclosing form, such as the Apply button, the Restore Defaults button, etc.

Apply Button Support

Because the SftOptions control maintains the options, it offers properties and events to notify the application about the Apply button status. As the user changes options in the SftOptions control, the Apply button should be enabled or disabled. The SftOptions control raises the ApplyStatusChange event to signal that the Apply button status changes.

Initially, when a form is displayed, the application should immediately disable the Apply button.

By responding to the ApplyStatusChange event, the application can then enable and disable the Apply button as needed.

Private Sub SftOptions1_ApplyStatusChange()
	YourApplyButton.Enabled = SftOptions1.ApplyStatus
End Sub

Saving all options is performed using the Save method.

Private Sub ApplyButton_Click()
	SftOptions1.Save
End Sub

Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.