...get the current screen resolution?

Author: Simon Grossenbacher
Homepage: http://www.swissdelphicenter.ch

Category: Graphic

procedure TForm1.Button1Click(Sender: TObject);
begin
  
MessageDlg(Format('Screen Width = %d' + #13#10 + 'Screen Height = %d',
            [Screen.Width, Screen.Height]), mtInformation, [mbOK], 0);
end;

 

printed from
www.swissdelphicenter.ch
developers knowledge base