right click the mouse, get a popout menu of action items

I’d like to code it so that when I select some text and right click the mouse, I get a popout menu of action items, i.e. search for the text in Google,sql insert the text into a database, etc.

Can anyone provide or point to a code template to get me started?

The ConstructContextualMenu example in the Example Projects/Desktop/Menus folder (included with Xojo) should help you get started.

Looking at it now-thanks!