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

Commit 46b7a7c

Browse files
author
Monte Goulding
authored
Merge pull request #1888 from montegoulding/readonlyarray
[[ PI Array ]] Improve read only mode for PI array
2 parents 3a26264 + 9508a9d commit 46b7a7c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Toolset/palettes/inspector/editors/com.livecode.pi.array.behavior.livecodescript

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ on editorUpdate
2020
unlock messages
2121
updateEditorFields tPath
2222
lock messages
23-
set the enabled of field "value" of me to tEnabled
24-
set the enabled of field "key" of me to tEnabled
23+
set the visible of field "value" of me to tEnabled
24+
set the visible of field "key" of me to tEnabled
25+
set the visible of field "value label" of me to tEnabled
26+
set the visible of field "key label" of me to tEnabled
27+
set the readOnly of widget "array" of me to not tEnabled
2528
if tEffective is true then
2629
set the textcolor of field "value" of me to "150,150,150"
2730
set the textcolor of field "key" of me to "150,150,150"

0 commit comments

Comments
 (0)