realbasic-nug.it
[Top] [All Lists]

IMAGEWELL

To: "REALbasic NUG Italian" <realbasic-nug dot it at lists dot realsoftware dot com>
Subject: IMAGEWELL
From: "Enrico a Libero" <enricolr at libero dot it>
Date: Tue, 15 Jan 2008 21:43:34 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug dot it at lists dot realsoftware dot com
Scusate ma pensavo di non averlo fatto...così va bene?

Sempre un saluto a tutti
Vorrei poter inserire a piacere una immagine in una windows trascinandola da 
una cartella (es la cartella immagini)
ho inserito in una window un oggetto IMAGEWELL e seguendo da manuale ho 
immesso i seguenti controlli :

Nella OPEN :
  Me.AcceptPictureDrop
  Me.AcceptFileDrop("image/x-jpg")

Nel DropObject
  If Obj.PictureAvailable then
    Me.Image=Obj.Picture
  elseif Obj.FolderItemAvailable then
    Me.Image=Obj. FolderItem.OpenAsPicture
  End if

Nel MouseDown
  Dim d as DragItem
  d= NewDragItem( Me.left, Me.top, Me.width, Me.height)
  d.picture= Me.Image
  d.Drag //Allow the drag

Ma non riesco a vedere l'iimagine trascinata.

Sempre un grazie a tutti
Enrico




<Prev in Thread] Current Thread [Next in Thread>