If your company uses multiple screen resolutions and has an ESL application that contains a dialog which needs to occupy the full screen, then the following routine will shrink and centre the specified dialog including all the dialog control it contains, so it will fit into the screen: