Popup Menu in Listbox

How can I pop up a (contextual) menu in a listbox on left click. I am trying to offer a list of options when a user clicks on a particular cell.

There are a example on Examples/Desktop/Controls/ListBox/ListBoxExample…

Screenshot

Thats the one. Many thanks

@Adelar

if you want to post a DropBox picture:

DropBox gives you a link ‘https://xojo.io/8a30a33f2bdd

change www to dl - and cut ?dl=0

you get:
https://xojo.io/a9d706b12675

and the picture is here

Nice !

Thank you Axel for the Dropbox tip (even if I do not use - yet - Dropbox).

Thank you Mike for the idea (use of a PopupMenu in the ListBox).

Nota: I use three colors as background colors in a ListBox (a software used by Caritas Strasbourg, France), but the colour selection is done differently:

in the preferences pane, I use three selection Canvas. The values are saved in the Prefs file.

Two of the colors are simply there to allow the eyes to be nice (just for fun). The third color (10% Majenta) is used on a column basis: if one specific cell is empty (it is the date of entry in the process of the person), that background color is set.
A different view exists: it shows only actual people (not the whole data base like the previous view) and only use two background colors: the reading process (following the data on one line) is better, the overall ‘Look and Feel’ is better too.
And for printing, I use a lightgrey background / no background. I will add the ‘print the original background colors’ in a pending update.

regarding dropbox: its much more easier to place your file in your dropbox public hotfolder, use right-menu, copying link into clipboard, and pasting it here into forum using img tags:

[quote=158210:@Axel Schneider]@Adelar

if you want to post a DropBox picture:

DropBox gives you a link ‘https://xojo.io/8a30a33f2bdd

change www to dl - and cut ?dl=0

you get:
https://xojo.io/a9d706b12675

and the picture is here

[/quote]

Hi Axel,

Thank you for the tip. Every time I try to do this, I can not, and thought it was some forum limitation.

Thank’s