Skip to content

Commit

Permalink
Implemented the reset buttom for the find dialogue
Browse files Browse the repository at this point in the history
  • Loading branch information
derekagorhom committed Jul 17, 2024
1 parent a234fee commit 03ff977
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion instat/dlgFindInVariableOrFilter.vb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Public Class dlgFindInVariableOrFilter
ucrPnlSelect.SetLinkedDisplayControl(grpSelect)

ucrBase.OKEnabled(False)
ucrBase.cmdReset.Enabled = False
ucrBase.cmdReset.Enabled = True
End Sub

Private Sub SetDefaults()
Expand Down Expand Up @@ -161,6 +161,14 @@ Public Class dlgFindInVariableOrFilter
End If
End Function

Private Sub ucrBase_ClickReset(sender As Object, e As EventArgs) Handles ucrBase.ClickReset
ucrSelectorFind.Reset()
rdoVariable.Checked = True
rdoCell.Checked = True
ucrReceiverVariable.Clear()
ucrInputPattern.cboInput.ResetText()
End Sub

Private Sub cmdFind_Click(sender As Object, e As EventArgs) Handles cmdFind.Click
Try
If rdoVariable.Checked OrElse rdoInFilter.Checked Then
Expand Down

0 comments on commit 03ff977

Please sign in to comment.