I use the Microsoft Common Control Library treeview quite extensively in most of my applications.
I have coded right click context menus for when a user right clicks a node.
The default of the popup commandbar is to be shown at the mouse pointer, however its also possible to specify a X and y coordinate.
Now recently I have tried to add support for keyboard in the treeview and have coded various keyboard actions into the treeview as well, and I can also code it to show the context menu, my problem is that it still displays at the mouse pointer, and since the user isn't using the mouse, that just looks weird.
So I want the popup to display at the location of the treeview node, but I can't seem to get the coordinate of the node. Does anyone know how to get the x/y coordinate of the node?
I have coded right click context menus for when a user right clicks a node.
The default of the popup commandbar is to be shown at the mouse pointer, however its also possible to specify a X and y coordinate.
Now recently I have tried to add support for keyboard in the treeview and have coded various keyboard actions into the treeview as well, and I can also code it to show the context menu, my problem is that it still displays at the mouse pointer, and since the user isn't using the mouse, that just looks weird.
So I want the popup to display at the location of the treeview node, but I can't seem to get the coordinate of the node. Does anyone know how to get the x/y coordinate of the node?
Comment