Tix 795: set up visiblity code