is there a way to have a mousehover event for ultralistview element? not the entier thing!
i am trying to use the hover for each subitem so i can display my tooltip for each one (my tooltip)
the problem is that after the first time i enter and stop somewhere it just doesn't activate the event until i get out and get back. (of the entire list that is)
Video
Hello Meir,
Please take a look on attached sample and video file for more details and if you have any questions, feel free to write me
Regards
If I understand well your issue looking on your code, you are not able to get message for the main column, because in SetListToolTip method you are using wrong parameter - e.SubItem. If you want to get the message from Main column, you should use e.Item instead of e.SubItem. Maybe you could modify your code:
private void ultraListView1_ToolTipDisplaying(object sender, ToolTipDisplayingEventArgs e)
{
// Override the default tooltip behavior for folder items,
// so we can display a summary of the contents of the folder
// when the end user hovers over the item.
e.Cancel = true;
if (!e.IsToolTipForSubItem)
if (e.Item.SubItems[0].Appearance.ForeColor.Equals(LIST_FORE_COLOR_DISABLED) == true)
return;
}
SetListToolTip(e.SubItem, new Point(e.Location.X, e.Location.Y + LIST_IMAGE_SIZE.Height));
else
SetListToolTip(e.Item, new Point(e.Location.X, e.Location.Y + LIST_IMAGE_SIZE.Height));
Let me know if you have any questions.
i actually already succedded partialy already
i added ToolTipDisplaying event to override the original tool tip and set the tipstyle of both the items (inside itemsSettings) and subitems. the problem is that even though they are both set to showalways i still don't get the event for the original item (main column) only for the sub items.
private void ultraListView_ToolTipDisplaying(object sender, Infragistics.Win.UltraWinListView.ToolTipDisplayingEventArgs e) { // Override the default tooltip behavior for folder items, // so we can display a summary of the contents of the folder // when the end user hovers over the item. e.Cancel = true; if (e.IsToolTipForSubItem == false) { if (e.Item.SubItems[0].Appearance.ForeColor.Equals(LIST_FORE_COLOR_DISABLED) == true) { return; } } SetListToolTip(e.SubItem, new Point(e.Location.X, e.Location.Y + LIST_IMAGE_SIZE.Height)); }
any idead why don't i get the message for the main column?