Detect screen size change?

I was wondering if there is a way to detect when the screen changes between the various pre-defined sizes, and execute commands when that happens.

I’m using some components with static sizes (UDCustomGauge), and of course components with predetermined sizes are a bit of a pickle to handle on various screens.

I was hoping that maybe one could define the sizes in variables, and then update these and refresh their parent containers upon a change in screen size.