SCRXLIM and SCRYLIM are two functions which return the screen width and height respectively on high resolution systems, or the outline width and height if used with secondary channel numbers. May be linked to compiled programs and included with free or commercial programs as required. They are freeware, and were written as compact extensions for use when larger toolkits which include similar functions are not required.
Download from http://www.dilwyn.me.uk/tk/index.html