Get dimensions of usable space on monitor (work area) | ||
| ||
| subtracting any space occupied by the task bar and any tool bars that sit on the desktop, use the WorkAreaHeight adnd WorkAreaWidth properties of the TScreen object. The following code determines the height of all forms on the screen and with Screen do for j := 0 to FormCount-1 do if Forms[j].Height > WorkAreaHeight then Forms[j].Height := WorkAreaHeight; if Forms[j].Width > WorkAreaWidth then Forms[j].Width := WorkAreaWidth; | ||
| | ||
| |