>LOCAL loNode > >*** if we have a shortcut menu associated >*** with this treeview, show it if we right-clicked >*** But only show it if we have actually right-clicked >*** on a node, if we right-click on the '-' or '+' in front >*** of a node, there is not way to select it >IF Button = 2 AND NOT EMPTY( This.cMenu ) > > *** Get a reference to the node under the mouse > *** nFactorX and nFactorY are used to convert pixels to twips > loNode = This.HitTest( X * This.nFactorX, Y * This.nFactorY ) > > *** If we have a valid node, show the menu. > IF NOT ISNULL( loNode ) > This.ShowMenu() > ENDIF >ENDIF >Thanks. I'm doing something similar except I have to check which node is selected and drop a different menu depending on the node.