Setting up a popup to control a motor, and my motor UDT has a parameter which defines whether it’s reversible or not. If not, I show just two buttons; Start and Stop. If it is reversible, I display three: Start Forward, Stop, Start Reverse.
What I’d ideally like is for the buttons to take up the same amount of space whether there are two or three. So, if there are two buttons, they’d either re-size to take up the full width, or at least re-position slightly to stay centred. Is it possible to do this dynamically? In any other SCADA package I’d just make 5 buttons and switch between them using visibility animations as necessary, but I’d like to think there’s a neater way of doing it in Ignition!