在程序中如此控制: procedure SetWindowToMonitor(Form: TCustomForm; //你想操作的窗体 MonitorIndex, //你想要显示窗体的显示 // 器索引, 0为主显示 // 器,1为第二显示器 Left, Top: Integer //窗体在显示器上的位置 ); begin if not Assigned(Form) then Exit; if MonitorIndex >= Screen.MonitorCount then Exit; with Screen do begin Inc(Left, Monitors[MonitorIndex].Left); Inc(Top, Monitors[MonitorIndex].Top); end; Form.SetBounds(Left, Top, Form.Width, Form.Height); end;
同一台计算机上输出两个视频,在两个显示器上显示不同的画面。
在使用WINDOWS 98/2000的插好多块显卡,按照系统提示,安装好多个显卡/显示器,然后你在显示属性里就会看到多个显示器,启用就行了;
procedure SetWindowToMonitor(Form: TCustomForm; //你想操作的窗体
MonitorIndex, //你想要显示窗体的显示 // 器索引, 0为主显示
// 器,1为第二显示器
Left, Top: Integer //窗体在显示器上的位置
);
begin
if not Assigned(Form) then Exit;
if MonitorIndex >= Screen.MonitorCount then Exit;
with Screen do
begin
Inc(Left, Monitors[MonitorIndex].Left);
Inc(Top, Monitors[MonitorIndex].Top);
end;
Form.SetBounds(Left, Top, Form.Width, Form.Height);
end;
装两块显卡 或者 装一块双头显卡(如G450) 就OK了,98/2K 都可以
楼上提到的Screen.MonitorCount和Screen.Monitors[]是两个比较有用的属性.
其实说白了,辅显示器只是主显示器的延展而已,比如说主显示器是1024X768
辅显示器1600X1200, 那么如果你的Form 的Left 属性设为 1024,那么这个Form 就基本上可以显示在另外一个显示器上了.因为两个显示器分辨率不一样,所以,还要换算一下才能得到准确位置 :)
再请问各位一句:笔记本电脑上有一个外接显示器输出口,可以外接大显示器,并可通过软开关切换,和以上各位谈到的双显卡是不是一回事?能不能实现笔记本LCD显示一画面,外接显示器显示另一画面?请给试试!谢谢!!!