www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - Event.x and y always 0

reply Simen Haugen <simen norstat.no> writes:
I have a table that I wish to load an editor for when the user double 
clicks on a cell. The problem is that the x and y properties of the 
event is always 0, so I cannot find the column the user clicked.

I tried updating to the newest version, but that didn't help.
I'm using dmd 1.028, dwt-win and tango r. 3543
Jul 21 2008
parent Simen Haugen <simen norstat.no> writes:
Simen Haugen wrote:
 I have a table that I wish to load an editor for when the user double 
 clicks on a cell. The problem is that the x and y properties of the 
 event is always 0, so I cannot find the column the user clicked.
 
 I tried updating to the newest version, but that didn't help.
 I'm using dmd 1.028, dwt-win and tango r. 3543

Never mind. By changing the event to MouseDown the x and y properties are filled and everything works as expected...
Jul 21 2008