Currently on the Koningsdam and they don't enforce a dress code for the Gala / Dressy nights.
I feel that on these nights - Men should be dressed Business Casual with appropriate pants and a collared shirt at a minimum. I personally wear a sports jacket but the majority don't.
If people want to wear, sweatpants, shorts and t-shirts on these nights - there are plenty of alternative options.