Hide

SftOptions 1.0 - ActiveX Options Control

Display
Print

SftOptions.ValidateAction Event

The user has changed an option.

Syntax

VB.NETPrivate Sub object_ValidateAction(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.ValidateAction
VBPrivate Sub object_ValidateAction(ByVal Name As String, ByVal Value As String)
C#.NETvoid object_ValidateAction(object sender, EventArgumentType e);
VC++void OnValidateActionobject(_bstr_t Name, _bstr_t Value);
CHRESULT OnValidateActionobject(BSTR Name, BSTR Value);

object

A SftOptions object.

Name

The name of the entry that the user has modified.

Value

The new value of the entry (see Entry.Value).

Comments

The ValidateAction event occurs when the user has changed an option.

It can be used to update other dependent options (enable/disable, setting dependent values, etc.) or even to immediately apply and save the new option (see IO.Save).

Example

Private Sub Form_Load()
	SftOptions1.Add "", "Main", "Sample Topic", entrySftOptionsTopic, "", "", Nothing, "", "", "", ""
	SftOptions1.Add "Main", "Cb1", "Check Box 1", entrySftOptionsCheckBox, "", "", Nothing, "", "", "", ""
	SftOptions1.Add "Main", "Cb2", "Check Box 2", entrySftOptionsCheckBox, "", "", Nothing, "", "", "", ""
	SftOptions1.Add "Main", "Cb3", "Check Box 3", entrySftOptionsCheckBox, "", "", Nothing, "", "", "", ""
	SftOptions1.InitializationComplete
End Sub

Private Sub SftOptions1_ValidateAction(ByVal Name As String, ByVal Value As String)
	 If Name = "Cb1" Then
		 SftOptions1.Entry("Cb2").Value = Value
		 SftOptions1.Entry("Cb3").Value = Value
	 End If
End Sub

See Also SftOptions Object | Object Hierarchy


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