Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DragDrop MouseOver

Status
Not open for further replies.

graabein

Programmer
Joined
Oct 9, 2002
Messages
186
Location
NO
Hi, I'm having problems with highlighting when I dragdrop a listitem from a ListView to a TreeView. I'm pulling the item and holding it over the ThreeView - so far so good - Now the previous ListItem HitTest row is highlighted in the ListView (along with selected item). The allowed nodes in the ThreeView are highlighted as I move the dragged item. I drop it and get a dialog box and I cancel this dialog box.

That means the user cancels the dragdrop and I want to return to the original state, that is, with a grayed ThreeView (selected node) and an active ListView with just one highlighted row - the selected item.

But now the dragdrop node in the ThreeView is selected and the two rows in the ListView (selected item and previous mouseover/hittest). When I debug.print selected items for ThreeView and ListView I see that the correct items still are selected, but the highlighting does not reflect this.

How do I reset selections for both controls without running ItemClick subs?

[elephant2]
graabein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top