Skip to main content



      Home
Home » Eclipse Projects » Nebula » CDateTime and Multiple Monitors
CDateTime and Multiple Monitors [message #37051] Tue, 03 July 2007 10:05 Go to next message
Eclipse UserFriend
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
Re: CDateTime and Multiple Monitors [message #37188 is a reply to message #37051] Sun, 08 July 2007 12:42 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: CDateTime and Multiple Monitors [message #37222 is a reply to message #37188] Wed, 11 July 2007 09:23 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: CDateTime and Multiple Monitors [message #38108 is a reply to message #37222] Fri, 03 August 2007 17:48 Go to previous message
Eclipse UserFriend
There is now a bugzilla entry to track this issue:

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
Re: CDateTime and Multiple Monitors [message #583452 is a reply to message #37051] Sun, 08 July 2007 12:42 Go to previous message
Eclipse UserFriend
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
Re: CDateTime and Multiple Monitors [message #583463 is a reply to message #37188] Wed, 11 July 2007 09:23 Go to previous message
Eclipse UserFriend
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
Re: CDateTime and Multiple Monitors [message #583818 is a reply to message #37222] Fri, 03 August 2007 17:48 Go to previous message
Eclipse UserFriend
There is now a bugzilla entry to track this issue:

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
Previous Topic:CDateTime bugs
Next Topic:Filter capability on CompositeTable
Goto Forum:
  


Current Time: Wed May 14 23:21:28 EDT 2025

Powered by FUDForum. Page generated in 0.04297 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top