gallicus
02-13-2002, 07:56 AM
Is it possible somehow to force a mouseup event for a listview?My problem is after dragging (OLE drag and drop) data from a listview to a treeview, the listview still thinks it is selected. A MouseDown Event has fired for the listview to start the drag and drop but no MouseUp Event fires (the mouse up occurs over the treeview). If the listview is blank then you get one of those expandable selection rectangles. I would rather not have this.
TIA
G
Banjo
02-14-2002, 06:14 AM
The reason it happens like that is because that's what happened. Think about it. The Mouse button went down on the listview and up on the treeview.
If you just need to mouseup event code to be called then call it manually after you start the drag.
If you want focus to shift to the treeview when something is dropped on it then call its Setfocus method in the DragDrop event.
gallicus
02-14-2002, 07:07 AM
Yes I see where you are coming from. When you say code the event manually, how is that?
call listview1_MouseUp
gives me the old 'Method or data member not found' error. How do you manually fire an event? (I hope it is not too simple!:o ) Calling is only for sub and function, I assume. I do not want the treeview to have focus so I would like to fire the mouseup event.
cheers
g
Banjo
02-14-2002, 07:55 AM
Do you have any code in the MouseUp event sub? If not then why to you need to have the mouseup event fire? If you just want the focus rectangle to disappear then calling the Setfocus method of the treeview will do this.
gallicus
02-14-2002, 08:23 AM
of course! you're right
Thanx!
G:)