View mode: basic / threaded / horizontal-split · Log in · Help
May 30, 2008
Error with MenuDetect
It seems somewhere in dwt, the parents location isn't added to the checked 
position...

What I mean is that the window has to be in the upper left corner of the 
screen to accept any MenuDetect. If I move it a little to the right, the 
rightmost part of my form doesn't detect it etc.
May 30, 2008
Re: Error with MenuDetect
Simen Haugen schrieb:
> It seems somewhere in dwt, the parents location isn't added to the checked 
> position...
> 
> What I mean is that the window has to be in the upper left corner of the 
> screen to accept any MenuDetect. If I move it a little to the right, the 
> rightmost part of my form doesn't detect it etc.
> 
> 


sorry, i don't understand your description.

can you post a minimal example? Or do you have that problem with 
existing examples also?

Do you use dwt-win or dwt-linux?

"to accept any MenuDetect", do you mean the visual reaction for mouse 
click? Or do you mean MenuDetectListener/Event is not called/triggered? 
or the coordinates in the passed event?
June 01, 2008
Re: Error with MenuDetect
Simen Haugen schrieb:
> It seems somewhere in dwt, the parents location isn't added to the checked 
> position...
> 
> What I mean is that the window has to be in the upper left corner of the 
> screen to accept any MenuDetect. If I move it a little to the right, the 
> rightmost part of my form doesn't detect it etc.
> 
> 

i don't know if that is relevant for your problem...
With menus a bug was reported and fixed.
http://www.dsource.org/projects/dwt-win/ticket/17
June 02, 2008
Re: Error with MenuDetect
"Frank Benoit" <keinfarbton@googlemail.com> wrote in message 
news:g1tr80$65g$1@digitalmars.com...
> Simen Haugen schrieb:
>> It seems somewhere in dwt, the parents location isn't added to the 
>> checked position...
>>
>> What I mean is that the window has to be in the upper left corner of the 
>> screen to accept any MenuDetect. If I move it a little to the right, the 
>> rightmost part of my form doesn't detect it etc.
>>
>>
>
> i don't know if that is relevant for your problem...
> With menus a bug was reported and fixed.
> http://www.dsource.org/projects/dwt-win/ticket/17

No, its not the same. The bug can be seen in other examples too. Open the 
ControlExample, select tree for instance and select the popup menu. If the 
window is positioned in the upper left of the screen, the popup menu shows. 
If I position it in the lower right, no popup menu is shown.

This is using dwt-win from trunk, tango rev. 3541 and dmd 1.028.
June 02, 2008
Re: Error with MenuDetect
Simen Haugen schrieb:
> No, its not the same. The bug can be seen in other examples too. Open the 
> ControlExample, select tree for instance and select the popup menu. If the 
> window is positioned in the upper left of the screen, the popup menu shows. 
> If I position it in the lower right, no popup menu is shown.
> 
> This is using dwt-win from trunk, tango rev. 3541 and dmd 1.028. 

Thanks, it is fixed now.
Top | Discussion index | About this forum | D home