Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-09

Mac OS X : Drag and Drop no longer works with TDragObject....

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dominique Louis

I notice that in the OnDragOver event Source no longer contains a TDragObject, but instead contains the actual TObject instance being dragged.

1. When was this changed and why?
2. Will this now remain the way it is for the forseeable future or is it likely to change back to TDragObject?

The reason why I ask is that, drag and drop code that was working fine 6 months ago, no longer works, so I'm just trying to get an idea of how much this code is likely to change in the next 2 months.

Thanks,

Dominique.

Reply by email

Paul Ishenin
to Dominique Louis
Dominique Louis wrote 5 lines
I notice that in the OnDragOver event Source no longer contains a TDragObject, but instead contains the actual TObject instance being dragged. 1. When was this changed and why?

during 0.9.25 becuase of bug report and because it is now delphi compatible

2. Will this now remain the way it is for the forseeable future or is it likely to change back to TDragObject?

it will stay so if we want delphi compatibility

The reason why I ask is that, drag and drop code that was working fine 6 months ago, no longer works, so I'm just trying to get an idea of how much this code is likely to change in the next 2 months.

To be sure what you get you can check:
if Source is TDragObject
then ..
else ...

Best regards,
Paul Ishenin.

Reply by email

Dominique Louis
to Paul Ishenin

Thanks for the quick response Paul, greatly appreciated, and I think the change to make it more Delphi compatible is the right way to go.

Regards,

Dominique.

Paul Ishenin wrote 22 lines
Dominique Louis wrote: > I notice that in the OnDragOver event Source no longer contains a > TDragObject, but instead contains the actual TObject instance being dragged. > > 1. When was this changed and why? > during 0.9.25 becuase of bug report and because it is now delphi compatible > 2. Will this now remain the way it is for the forseeable future or is it > likely to change back to TDragObject? > it will stay so if we want delphi compatibility > The reason why I ask is that, drag and drop code that was working fine 6 > months ago, no longer works, so I'm just trying to get an idea of how > much this code is likely to change in the next 2 months. > To be sure what you get you can check: if Source is TDragObject then .. else ... Best regards, Paul Ishenin.

Reply by email