on tMemeIMDT pImage
set the text of img pImage to ""
set the MonImageData of img pImage to the imagedata of img pImage --•• MonImageData is a custom propertie
put VerifMemeImagedata(pImage) into Meme --•• return false
end tMemeIMDT
function VerifMemeImagedata pImage
if the MonImageData of img pImage = the imagedata of img pImage then
return true
else
return false
end if
end VerifMemeImagedata
if you set the text of an image to "" or empty you clear everything out of the image, the imagedata will be empty
try without "set the text of image ... to ""
than you say
set the MonImageData of img pImage to the imagedata of img pImage --•• MonImageData is a custom propertie
put VerifMemeImagedata(pImage) --into Meme --•• return false
you set the custom property to the imagedata and right afterwards you ask if the customproperty = imagedata. For me it returns always true as it should, it never had a chance to change. Try to do the setting e.g. when you start going into an image/start paint modus. When ending paint modus and you want to know if anything has changed you make the comparison without first setting the custom property to the actual imagedata.
regards
Bernd
on tMemeIMDT pImage
set the MonImageData of img pImage to the text of img pImage --•• MonImageData is a custom propertie
end tMemeIMDT
function VerifMemeImagedata pImage
return the MonImageData of img pImage = the text of img pImage
end VerifMemeImagedata
I call tMemeIMDT on mouseDown and VerifMemeImagedata with