From Xojo Documentation
Used to display an image in a window.
|Image||Picture||The picture displayed in the ImageWell.|
If QuickTime is installed on the user's machine, the additional picture formats supported by QuickTime are also supported. This pertains to Windows and Macintosh only. Native support for the following formats is provided:
On Windows, an ImageWell can display a BMP or PNG image.
On Macintosh, an ImageWell can display a PICT image.
On Linux, an ImageWell can display a BMP or PNG image.
The following line of code in the ImageWell's Open event displays a picture of a prancing stallion in the ImageWell. The image had been added to the Project Editor.
The following example implements drag and drop between two ImageWells, a BMP file dragged from the desktop to either ImageWell, and from one ImageWell to the other. For Macintosh, use the PICT file type instead of BMP.
In the Open event handler of the ImageWells, the two statements tell the controls to accept either a dragged picture or a dragged file of type BMP. The file type "image/x-bmp" was defined previously in the File Type Sets Editor or via the FileType class.
The DropObject event handler is
If Obj.PictureAvailable then
elseif Obj.FolderItemAvailable then
The MouseDown event uses the NewDragItem method of the Window class. It is
d.Drag //Allow the drag