Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCDateTime and Multiple Monitors
https://www.eclipse.org/forums/index.php/mv/msg/11904/37051/#msg_37051
Originally posted by: msoori.lggi.com
Hi,
I am using CDateTime and its poping up on the primary screen, even when
I have the dialog which contains the CDateTime component on the
secondary monitor. Any workarounds to fix this?
Thanks
Mahesh]]>2007-07-03T14:05:03-00:00Re: CDateTime and Multiple Monitors
https://www.eclipse.org/forums/index.php/mv/msg/11904/583452/#msg_583452
I have had something similar in my general RCP work.
It seems to be that sometimes Shells are not assigned to the same
Monitor as their parent. I have not been able to cure this problem
but I have been able to address the symptom.
Unfortunately I do not have a multiple monitor set-up available so
cannot submit tested code but I suggest you try something on the lines
of:
1. In the AbstractCombo.setOpen() method ...
2. Compare the Monitors of 'contentShell' and 'positionControl'
(using getMonitor())
3. If not equal() apply an offset to the Point 'location' derived by
comparing the Monitors' getBounds() values.
Hope this works - and if it does I suggest you submit it as a fix.
>Hi,
>
>I am using CDateTime and its poping up on the primary screen, even when
>I have the dialog which contains the CDateTime component on the
>secondary monitor. Any workarounds to fix this?
>
>Thanks
>Mahesh]]>Mike Evans2007-07-08T16:42:37-00:00Re: CDateTime and Multiple Monitors
https://www.eclipse.org/forums/index.php/mv/msg/11904/37188/#msg_37188
I have had something similar in my general RCP work.
It seems to be that sometimes Shells are not assigned to the same
Monitor as their parent. I have not been able to cure this problem
but I have been able to address the symptom.
Unfortunately I do not have a multiple monitor set-up available so
cannot submit tested code but I suggest you try something on the lines
of:
1. In the AbstractCombo.setOpen() method ...
2. Compare the Monitors of 'contentShell' and 'positionControl'
(using getMonitor())
3. If not equal() apply an offset to the Point 'location' derived by
comparing the Monitors' getBounds() values.
Hope this works - and if it does I suggest you submit it as a fix.
>Hi,
>
>I am using CDateTime and its poping up on the primary screen, even when
>I have the dialog which contains the CDateTime component on the
>secondary monitor. Any workarounds to fix this?
>
>Thanks
>Mahesh]]>Mike Evans2007-07-08T16:42:37-00:00Re: CDateTime and Multiple Monitors
https://www.eclipse.org/forums/index.php/mv/msg/11904/583463/#msg_583463
Originally posted by: msoori.lggi.com
Thanks Mike. I will give that a try.
Mike Evans wrote:
> Hi Mahesh,
>
> I have had something similar in my general RCP work.
> It seems to be that sometimes Shells are not assigned to the same
> Monitor as their parent. I have not been able to cure this problem
> but I have been able to address the symptom.
>
> Unfortunately I do not have a multiple monitor set-up available so
> cannot submit tested code but I suggest you try something on the lines
> of:
>
> 1. In the AbstractCombo.setOpen() method ...
> 2. Compare the Monitors of 'contentShell' and 'positionControl'
> (using getMonitor())
> 3. If not equal() apply an offset to the Point 'location' derived by
> comparing the Monitors' getBounds() values.
>
> Hope this works - and if it does I suggest you submit it as a fix.
>
> Mike E.
>
>
>
> On Tue, 03 Jul 2007 10:05:03 -0400, Mahesh Soori <msoori@lggi.com>
> wrote:
>
>> Hi,
>>
>> I am using CDateTime and its poping up on the primary screen, even when
>> I have the dialog which contains the CDateTime component on the
>> secondary monitor. Any workarounds to fix this?
>>
>> Thanks
>> Mahesh]]>2007-07-11T13:23:45-00:00Re: CDateTime and Multiple Monitors
https://www.eclipse.org/forums/index.php/mv/msg/11904/37222/#msg_37222
Originally posted by: msoori.lggi.com
Thanks Mike. I will give that a try.
Mike Evans wrote:
> Hi Mahesh,
>
> I have had something similar in my general RCP work.
> It seems to be that sometimes Shells are not assigned to the same
> Monitor as their parent. I have not been able to cure this problem
> but I have been able to address the symptom.
>
> Unfortunately I do not have a multiple monitor set-up available so
> cannot submit tested code but I suggest you try something on the lines
> of:
>
> 1. In the AbstractCombo.setOpen() method ...
> 2. Compare the Monitors of 'contentShell' and 'positionControl'
> (using getMonitor())
> 3. If not equal() apply an offset to the Point 'location' derived by
> comparing the Monitors' getBounds() values.
>
> Hope this works - and if it does I suggest you submit it as a fix.
>
> Mike E.
>
>
>
> On Tue, 03 Jul 2007 10:05:03 -0400, Mahesh Soori <msoori@lggi.com>
> wrote:
>
>> Hi,
>>
>> I am using CDateTime and its poping up on the primary screen, even when
>> I have the dialog which contains the CDateTime component on the
>> secondary monitor. Any workarounds to fix this?
>>
>> Thanks
>> Mahesh]]>2007-07-11T13:23:45-00:00Re: CDateTime and Multiple Monitors
https://www.eclipse.org/forums/index.php/mv/msg/11904/583818/#msg_583818
https://bugs.eclipse.org/bugs/show_bug.cgi?id=198854
Please add comments there if you have new insights. What platform
(Windows, Linux, etc.) are you running when you see this?
--
Peter]]>Peter Centgraf2007-08-03T21:48:10-00:00Re: CDateTime and Multiple Monitors
https://www.eclipse.org/forums/index.php/mv/msg/11904/38108/#msg_38108
https://bugs.eclipse.org/bugs/show_bug.cgi?id=198854
Please add comments there if you have new insights. What platform
(Windows, Linux, etc.) are you running when you see this?