Board index » cppbuilder » Application placement when user has multiple monitors / screens
Daryl
![]() CBuilder Developer |
Daryl
![]() CBuilder Developer |
Application placement when user has multiple monitors / screens2007-09-07 05:24:05 AM cppbuilder26 Could anyone provide some help on how to manage where an application will open on a system that uses multiple monitors? Is there a way of ensuring the application will open were the programmer what it to open i.e. centre of say the primary screen and is there a way to target other screens if they are present. thanks daryl |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2007-09-07 05:32:54 AM
Re:Application placement when user has multiple monitors / screens
"Daryl" < XXXX@XXXXX.COM >wrote in message
QuoteCould anyone provide some help on how to manage where TScreen object to know how many monitors are present and what their coordinates are within the virtual desktop. Gambit |
Daryl
![]() CBuilder Developer |
2007-09-07 04:01:08 PM
Re:Application placement when user has multiple monitors / screens
Gambit wrote:
QuoteSimply set the TForm's Left/Top properties to an area occupied by the would be interested in your approach... BTW - I have set the Position property in design view to poDesigned. if(Screen->MonitorCount>1) { // Set the main form's properties Top and Left to centre form on Primary Screen frmMain->Top = (Screen->PrimaryMonitor->Height - frmMain->Height) / 2; frmMain->Left = (Screen->PrimaryMonitor->Width - frmMain->Width) / 2; } else { frmMain->Position = poDesktopCenter; } {smallsort} |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2007-09-07 06:43:00 PM
Re:Application placement when user has multiple monitors / screens
"Daryl" < XXXX@XXXXX.COM >wrote in message
QuoteIs there a better way than what I have shown below? Gambit |