----- Original Message ----- From: Jamie L. Mitchell Is there a way to make a dynamic decision about which popup menu to pop when right clicking the mouse? I would like to select the menu to show based on the context of the click; if over a certain kind of word in a rich text edit, for example, I want to show a synonym menu; otherwise, I want to put up an enhanced cut/copy/paste type menu.
Jamie, There are at least two methods: 1) Don't have a PopupMenu property defined, but detect the right button click, and then pick one of your own menus and call it's Popup method. 2) Have the PopupMenu property defined, but put in a handler for the OnPopup event. Method 1 is difficult, but very powerful. You could be hooked into the OnMouseMove event for the RichEdit and be grabbing synonyms on the fly which magically appear in the status bar together with hotkeys to insert them! Regards, Carl. ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

