"set %ncl $+($,rgb,( $+ $rgb($color(listboxtext)) $+ ),)"
Perhaps this is why it wouldn't work for you. That should be: $color(listbox text)

e.g. dll mdx/mdx.dll SetColor $dname 1 text $clr(editbox text)