Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit c3adc0c

Browse files
authored
bug # 20868 -- enable/disable button "replace" based on search location
Replacing of found items in Script Editor is only available when Location option is 'Current Tab' or 'All Tabs' so the button "replace" of stack "revSEFind">Stack "main" should only be enabled then. For all other Locations the "replace" button should be disabled. Also when replace is not available and disabled the label of the button should be set to empty. It can be set back to item 1 when the user changes back to location 'Current Tab' or 'All Tabs'.
1 parent 3483226 commit c3adc0c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Toolset/palettes/script editor/behaviors/revsefindmaincardbehavior.livecodescript

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ command updateButtonStates
118118
enable button "Replace one" of me
119119
enable button "Find all" of me
120120
enable button "Replace all" of me
121+
enable button "Replace" of me
122+
select item 1 of button "replace"
121123
else
122124
enable button "Find all" of me
123125

@@ -127,6 +129,8 @@ command updateButtonStates
127129

128130
disable button "Find Next" of me
129131
disable button "Replace one" of me
132+
disable button "Replace" of me
133+
set the label of button "replace" of me to empty
130134
end if
131135
end updateButtonStates
132136

0 commit comments

Comments
 (0)