How to show a firemonkey form on second monitor
- by Shaun07776
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?