How to show a firemonkey form on second monitor

Posted by Shaun07776 on Stack Overflow See other posts from Stack Overflow or by Shaun07776
Published on 2012-02-11T18:48:16Z Indexed on 2012/06/10 4:40 UTC
Read the original article Hit count: 182

I am trying to display a FireMonkey form on a second monitor, using C++Builder with following code:

 void __fastcall ShowFormOnScreen( int OutMon )
 { 
   MyForm->Top = 0;
   MyForm->BorderStyle = bsNone;
   MyForm->WindowState = wsNormal;
   MyForm->Left   = Screen->Monitors[OutMon]->Left;
   MyForm->Height = Screen->Monitors[OutMon]->Height;
   MyForm->Width  = Screen->Monitors[OutMon]->Width;
   MyForm->Show();
 }

Unfortunately, the Screen object does not have the Monitors property, so how can do this in FireMonkey?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about c++builder