Thanks Gary. If I understand that code, it will create a form filling the screen of a second monitor, if the second monitor is one of a multi-monitor extended desktop created by Windows. In this case, the mouse cursor could move there, and the user could drag windows onto the second monitor on top of the Delphi form, etc. It is just like part of the main desktop.
I guess I didn't make it clear enough: I'm trying to create a _dedicated_ display for Delphi. In the DOS days I would have written directly to the memory at B000:0000 to control a secondary monochrome monitor that was installed along with a VGA in a computer. I'm trying to get the same result here. A secondary video display, under the total control of my Delphi application, not part of the Windows desktop. (No mouse needed - status display only)
Main Topics
Browse All Topics





by: gary_williamsPosted on 2004-09-21 at 05:53:44ID: 12111551
procedure TForm1.FormCreate(Sender: TObject); ;
begin
if (Screen.MonitorCount >= 2) then
begin
Form2 := TForm2.Create(Application)
Form2.Left := Screen.Monitors[1].Left;
Form2.Top := Screen.Monitors[1].Top;
Form2.Width := Screen.Monitors[1].Width;
Form2.Height := Screen.Monitors[1].Height;
end;
end;