www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - Error with MenuDetect

reply "Simen Haugen" <simen norstat.no> writes:
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
next sibling parent Frank Benoit <keinfarbton googlemail.com> writes:
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?
May 30 2008
prev sibling parent reply Frank Benoit <keinfarbton googlemail.com> writes:
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
Jun 01 2008
parent reply "Simen Haugen" <simen norstat.no> writes:
"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.
Jun 02 2008
parent Frank Benoit <keinfarbton googlemail.com> writes:
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.
Jun 02 2008