|
|
|
Re: Drag and select the GalleryItems in GalleryViewer [message #34262 is a reply to message #34228] |
Mon, 07 May 2007 06:59 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Hi,
If you want to drag items out of the gallery, just add a drag source on
the gallery, and use gallery.getSelection() within the dragsource
listener to get the items that are being dragged.
int operations = DND.DROP_COPY;
Transfer[] types = new Transfer[] { FileTransfer.getInstance() };
final DragSource source = new DragSource(gallery, operations);
source.setTransfer(types);
source.addDragListener(new DragSourceListener() {} );
There are several SWT drag and drop examples here :
http://www.eclipse.org/swt/snippets/
Currently, moving items in a single gallery is not supported.
--
Nicolas
Swetha a écrit :
> Hi,
>
> Can anyone please let me know.. how to get this feature..
>
> Thanks,
> Swetha
>
|
|
|
Re: Drag and select the GalleryItems in GalleryViewer [message #34296 is a reply to message #34262] |
Mon, 07 May 2007 11:50 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: swetha.yahoo.co.in
Hi,
Thanks for the reply...
I don't want the items to be dragged..
I want if we drag the mouse on Gallery screen, all the gallery items
which are in that area of mouse dragged area must be selected.. just like
in windows if we drag the mouse all the icons within that area will be
selected ..the same thing I wnat to implement for my Gallery View.
Thanks,
Swetha
|
|
|
Re: Drag and select the GalleryItems in GalleryViewer [message #34396 is a reply to message #34296] |
Tue, 08 May 2007 12:08 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Hi,
This is not supported right now, but it is definitely on my todo list.
Please open a bugzilla entry for this.
Thanks
--
Nicolas
Swetha a écrit :
> Hi,
> Thanks for the reply...
> I don't want the items to be dragged..
> I want if we drag the mouse on Gallery screen, all the gallery items
> which are in that area of mouse dragged area must be selected.. just
> like in windows if we drag the mouse all the icons within that area
> will be selected ..the same thing I wnat to implement for my Gallery View.
>
>
> Thanks,
> Swetha
>
>
>
>
>
|
|
|
|
|
Re: Drag and select the GalleryItems in GalleryViewer [message #581990 is a reply to message #34228] |
Mon, 07 May 2007 06:59 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Hi,
If you want to drag items out of the gallery, just add a drag source on
the gallery, and use gallery.getSelection() within the dragsource
listener to get the items that are being dragged.
int operations = DND.DROP_COPY;
Transfer[] types = new Transfer[] { FileTransfer.getInstance() };
final DragSource source = new DragSource(gallery, operations);
source.setTransfer(types);
source.addDragListener(new DragSourceListener() {} );
There are several SWT drag and drop examples here :
http://www.eclipse.org/swt/snippets/
Currently, moving items in a single gallery is not supported.
--
Nicolas
Swetha a écrit :
> Hi,
>
> Can anyone please let me know.. how to get this feature..
>
> Thanks,
> Swetha
>
|
|
|
Re: Drag and select the GalleryItems in GalleryViewer [message #582009 is a reply to message #34262] |
Mon, 07 May 2007 11:50 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Hi,
Thanks for the reply...
I don't want the items to be dragged..
I want if we drag the mouse on Gallery screen, all the gallery items
which are in that area of mouse dragged area must be selected.. just like
in windows if we drag the mouse all the icons within that area will be
selected ..the same thing I wnat to implement for my Gallery View.
Thanks,
Swetha
|
|
|
Re: Drag and select the GalleryItems in GalleryViewer [message #582063 is a reply to message #34296] |
Tue, 08 May 2007 12:08 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Hi,
This is not supported right now, but it is definitely on my todo list.
Please open a bugzilla entry for this.
Thanks
--
Nicolas
Swetha a écrit :
> Hi,
> Thanks for the reply...
> I don't want the items to be dragged..
> I want if we drag the mouse on Gallery screen, all the gallery items
> which are in that area of mouse dragged area must be selected.. just
> like in windows if we drag the mouse all the icons within that area
> will be selected ..the same thing I wnat to implement for my Gallery View.
>
>
> Thanks,
> Swetha
>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04140 seconds