Re: How do I customize drag image behavior?
- From: "Randy Birch" <rgb_removethis@xxxxxxxx>
- Date: Fri, 7 Dec 2007 10:45:58 -0500
Check out Brad's example at http://btmtz.mvps.org/listview/
--
Randy
http://vbnet.mvps.org/
"Rob Richardson" <CedricCicada@xxxxxxxxx> wrote in message
news:cf84b208-260d-49bf-809d-7f0b88bf55ca@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am trying to get a reasonable display to show that I am dragging the
selected item from a listbox onto another control. So far, I have
found the following choices:
1. I can create an icon file and use it for the listbox's DragIcon
property. I've got a couple of problems with this. First, even
though the only image in the icon file is 16x16 pixels, VB
automatically expands the image to 32x32 pixels, which looks extremely
tacky. I only need a neat little image. Second, I have no visual way
of knowing where the exact location the mouse is pointing to. It
could be anywhere within the 32x32 box, and the user and the
application are both going to need its exact location.
2. I can leave the listbox's DragIcon property empty and change its
MousePointer property when I'm dragging it. This looks very good, and
it avoids the second problem mentioned above. The problem here is
that when I drag the selection, I get an image of the outline of the
entire listbox control.
So, how can I either get a small drag icon with a known hotspot
indication, or how can I get rid of the outline of the listbox's image
when I'm dragging it without using a drag icon?
Thanks very much!
RobR
.
- References:
- How do I customize drag image behavior?
- From: Rob Richardson
- How do I customize drag image behavior?
- Prev by Date: Re: Configuration problem (help!)
- Next by Date: Re: Why the VB6 versus VB.NET contest is baloney
- Previous by thread: Re: How do I customize drag image behavior?
- Next by thread: Re: Best practice when editing text files
- Index(es):
Relevant Pages
|