I need to get the position of the mouse when clicking on a region or dropping another region on the parent region.
The problem is I never get the same information in the aparams list on mouse up event or RegionJQDropOptionsDrop() event.
1 out of 10 times or so I get this (I need it every time to locate the position of the drop or mouse click).
IW_SessionID_=RYwvOmWpbKQeOTayAJBogG IW_TrackID_=2
[color=#FF0000]IWCGJQREGION7_POS=481,101
IWCGJQREGION7_POS=481,101
callback=REGRESTIMESLOT2.DoAjaxRequest
ajaxevent=JQDropOptions.OnDrop
ComponentName=REGResTimeSlot2
Most of the time I get this in the aparams list
IW_SessionID_=RYwvOmWpbKQeOTayAJBogG
IW_TrackID_=2
callback=REGRESTIMESLOT3.DoAjaxRequest
ajaxevent=JQDropOptions.OnDrop
ComponentName=REGResTimeSlot3
To replicate just drop a region with this event ...
procedure TIWForm3.IWCGJQRegion2JQEventsMouseUp(Sender: TObject;
AParams: TStringList);
begin
webapplication.ShowMessage('MouseUp ' + aparams.text);
end;
Can you advise on getting the position every time?
Thanks![/color]