> I have a problem with dgDragImageIndex, at first drag&drop
> operations the
> image is correct, some one after the image change to any random, and
> no more
> show the correct image for the row selected.
The Data Grid is just setting the dragImage property to the id of an
image named "dgDragImage" that resides inside the Data Grid group. You
could try checking that the dragImage is the id of image "dgDragImage"
of group "Data_Grid_Name".
Check out the rules for search order when locating the image used in
dragImage in the docs:
> Yes, this is that I do, but the image is empty...
> The script:
> on dragStart
> put the dgIndex of the dgDataControl of the target into theIndex
> --set the dgDragImageIndex of me to theIndex
> set the dgDragImageIndex of me to the id of the image
> "dgDragImage" of me
DO NOT set the dgDragImageIndex to the id of the image. It is an index
value. Set it to an index.
Again, you should start by checking the id of the image and comparing
it to the dragImage. Insert this code after you assign the
put the id of the image "dgDragImage" of me & cr & the dragImage
If the values are the same then the dragImage is being assigned
properly. Next confirm that the image has the data you expect.
Replace the code that outputs the id of the image with code that
copies the image data to the clipboard:
set the clipboardData["image"] to the text of image "dgDragImage" of me
Paste the clipboard image somewhere where you can see it. Is it your
row? If so then the data grid code is doing what it is supposed to.
If both of the above tests pass then you need to track down the image
in another stack that has the same id as the dgDragImage of your data
grid. Start searching for an image with the same id in any open
stacks. Once you find it let us know and we can figure out how the
engine is searching for the image to use and determine how to fix your
And is it the image of another row? Always the same image?
I encounter one time the same behavior but it was my fault and
generated by my own code. I had two images with the same name in the
row. But by using the standard dgDragImageIndex, it is not possible to
> I modified the script but nothing happen, almost I don't see any in
> the msg..
> I edited and saved it but nothing.
Are you using a form or a table? I gave you the code for modifying a
table so if you are using a form the code wouldn't have fired. The
form code is located in "_CreateDragImageFromControl". But that code
doesn't use a "this card reference" so I don't see how it could have a