Project JEDI - Issue Tracker - JEDI VCL
Viewing Issue Advanced Details
6419 00 JVCL Components tweak always 2015-07-12 05:47 2019-05-22 17:46
Gustavo Costa  
obones  
normal  
resolved Daily / GIT  
fixed  
none    
none Daily / GIT  
0006419: Position of TJvDesktopAlert with multi screen
When we are using the TJvDesktopAlert, with property Location.Position = dapBottomRight, with multi monitors, the alert is showed always in the main monitor.

I think that it is better to show the alert in bottom, right of the monitor where the active form is showing.

Or add this option in Location.Position.
I've tried and works using the follow code in the JvJVCLUtils.ScreenWorkArea function

Result := Screen.MonitorFromWindow(Screen.ActiveForm.Handle).WorkareaRect;
zip file icon Mantis6419_JvDesktopAlertDemo.zip [^] (5,387 bytes) 2019-05-04 12:55
zip file icon Mantis6419_JvDesktopAlertDemoNew.zip [^] (54,057 bytes) 2019-05-04 13:07
Issue History
2015-07-12 05:47 Gustavo Costa New Issue
2015-09-14 11:26 obones Note Added: 0021195
2015-09-14 11:26 obones Status new => feedback
2019-05-04 12:55 mh File Added: Mantis6419_JvDesktopAlertDemo.zip
2019-05-04 13:07 mh File Added: Mantis6419_JvDesktopAlertDemoNew.zip
2019-05-04 13:09 mh Note Added: 0021801
2019-05-04 13:25 mh Note Added: 0021802
2019-05-22 17:46 obones Status feedback => resolved
2019-05-22 17:46 obones Fixed in Version => Daily / GIT
2019-05-22 17:46 obones Resolution open => fixed
2019-05-22 17:46 obones Assigned To => obones

Notes
(0021195)
obones   
2015-09-14 11:26   
Please provide the zipped sources of a sample application showing this
(0021801)
mh   
2019-05-04 13:09   
The first attachment can be deleted, my mistake - sorry!
For the second: unzip it on a computer with 2 displays. Run it and click the button. No matter on which screen the application is, the alert will always be shown at the same position: at the bottom right of the main monitor.
(0021802)
mh   
2019-05-04 13:25   
Created this pull request for the issue now:
https://github.com/project-jedi/jvcl/pull/120 [^]

If implemented the alert (run attached demo after implementing the fix) does not always appear on the main screen bottom right, but on the bottom right of the screen the form calling the alert is on.