DATAGRID dgDragImageIndex problem

zryip theSlug zryip.theslug at gmail.com
Wed Jul 28 16:38:01 EDT 2010


On Wed, Jul 28, 2010 at 10:25 PM, Jan Schenkel <janschenkel at yahoo.com> wrote:
> Ok, I think I have figured it out after studying the script of the DataGrid behavior button.
>
> Quartam Reports uses the templateImage to create the image control for the report. Then, the DataGrid tries to find an image 'dgDragImage' in the datagrid group control- and when it doesn't find this image, it promptly creates a new image.
>
> But at that point, the templateImage is still preset with the last settings from Quartam Reports. Now, we can debate whether or not the library should cleanup after itself, but the safest solution is probably to call 'reset the templateImage' before creating the dgDragImage control.
>
> So when I changed Josep's drag-drop datagrid script to call 'reset the templateImage' before setting the dgDragImageIndex, everything worked correctly (in Rev 4.0/4.5 on MacOSX anyway).
>
> No need to file it in the Quality COntrol Center - Trevor's already on top of it :-)

Good to know, thanks for sharing the info, Jan


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc



More information about the use-livecode mailing list