I was working on enabling/disabling editbox and buttons for a dialog. This all worked up to a certain point.

At one point the text would change, but the dialog ids would not disable.
I figured maybe some other part of the script was interfering, but there was nothing else trying to enable or disable these dialog ids.
In despair i resulted into editing it like this.

Code:
if (!%command) {
        .echo 4 -s This line should be triggering, since the command below is being triggered 
        did -ro $dname 112 1 THIS IS NOT A C-U-S-T-O-M COMMAND AND AS SUCH IT CAN NOT BE REMOVED OR EDITED!!! *** ONLY ITS ACCESS CAN BE EDITED ***
        did -b $dname 110,112 
      }


Now, the text in the editbox does get changed. It is however not to the text above, but to the text it was prior to saving.

If i move the "did -b $dname 110,112" above the if statement, the button and editbox are disabled. The text, however, still remains the same as it was before the editing.