HI,
i try to set a tooltip on items of optionset.
For example i want that when i m over the first item the tooltiptext is "u are on the first element", over the second..the second etc...
I try to know with
Dim aUIElement As Infragistics.Win.UIElement = selezioneplaylist.UIElement.ElementFromPoint(MousePosition)
the element where the mouse is, but i receive always nothing
How can understand when i m over the items 1, 2 etc on my optionset?
tks a lot
Luca
My guess is that wherever you are getting the MousePosition from, it's in screen coordinates and the ElementFromPoint method is expect control coords.
What I would do for the tooltips is use the MouseMove event of the UltraOptionSet control and then use the X and Y that are passed into the event so they will be relative to the control and not the screen.
Another option would be to call PointToClient on the control to convert the screen coords into control coords before you call into ElementFromPoint.
yes, mouseposition is the pointer (x,y) of the mouse.
How can undestand if i m on the first, second, third...item of my optionset.
I want set a different tooltip for every option in optionset. How can do this?
Hi Luca,
What event are you using for this code? What is MousePosition?
My guess is that your MousePosition is in screen coordinates instead of control coords.