Dynamic images while popupMenu hovering

I’d like to make a popupMenu that effectively receives events as the user mouses over all of the visible options so that it could, say display an image of what they would get if they selected that menu entry.

Best I can think of is to receive mouse enter and mouse exit – if that even works on the expanded menu rather than the quiescent popup control and the get System mouseX and mouseY to see which menuo item the mouse is hovering over.

  1. Is this feasible?
  2. Would I put that checking code in foreground or background?
  3. Should I make a sublcass of popup menu to do this?

Anyone have suggestions?

somehow you can not get the item at mouse over in DesktopPopupMenu

suggestions

maybe use own window with a DesktopListBox

I will have the need for something similar, too, in the next version of my app. My current idea is to have radio buttons instead as I don’t have too many values in the popup menu. Then I could use the space to the right of the radio buttons for an image. Or I could do a popover window instead if the text of the radio buttons gets too long:

The app can make PDFs out of emails and their attachments. User want the emails/attachment in different configurations. I’m running out of descriptions. So I thought I could do a simple graphics in addition or even a screenshot.