CDateTime and Multiple Monitors [message #37051] |
Tue, 03 July 2007 10:05  |
Eclipse User |
|
|
|
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 #583452 is a reply to message #37051] |
Sun, 08 July 2007 12:42  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.06134 seconds