Najjednostavniji nacin je da koristis klasu TScreen iz Forms unit-a.
ako zelis da izlistas spisak svih displeja na sistemu:
Code:
for i := 0 to Screen.MonitorCount - 1 do
ComboBox1.Items.Add(IntToStr(i));
ako zelis da svoj program prikazes na odredjenom monitoru, mozes da dodas u OnSelect za ComboBox1
Code:
Self.Top := Screen.Monitors[ComboBox1.Items[ComboBox1.ItemIndex]].Top;
Self.Left := Screen.Monitors[ComboBox1.Items[ComboBox1.ItemIndex]].Left;
Self.Width := Screen.Monitors[ComboBox1.Items[ComboBox1.ItemIndex]].Width;
Self.Height := Screen.Monitors[ComboBox1.Items[ComboBox1.ItemIndex]].Height;
pozdrav