Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3798

Dropobject working only with iamgewell

$
0
0

New project: one window containg a canvas and an imagewell + pict filetypes

In the canvas and in the imageWell open event handler I have:
me.AcceptFileDrop SupportedImageFormats.all

and In the canvas and in the imageWell dropobject event handler I have
If Obj.PictureAvailable Then
me.Backdrop = obj.Picture
end if

and

If Obj.PictureAvailable Then
me.image = obj.Picture
end if

But while dropping a .png picturefile into the imagewell works, dropping the same file into the canvas does not work.

Tried removing the imagewell and leaving only the canvas: it still doesn’t work.
And of course, I cannot have it work in existing projects.

BTW: I cannot have it work even dropping onto a window…

Suggestions welcome. Thanks.

Xojo 2021r2.1 and Xojo 2024r2.4
Last Sonoma

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 3798

Trending Articles