I have a dialog that I'm working on (it's fairly lengthy so I won't post the code unless I have to), but the current problem I'm encountering is the enabling/disabling of a set of buttons.

The button ID's are stored in a variable to make it easy to enable/disable all of them at one time.
I have another button which is separate from the group, but positioned in the dialog in the same area as the group.
When I have this last button displayed it works perfectly with
Code:
on *:dialog:DJ:sclick:17:{
  did $iif($did(71).enabled,-b,-e) $dname %sched.am
}

however, having it displayed ruins the visual look of the dialog, so I tried hiding the button, which makes the dialog look good, yet it also seems to stop working in the code as previously posted.

Any ideas as to why this is happening and/or how I can get around it and still have my dialog look the way I want?