Well for those that are interested
I've managed to simulate a right click menu with either a sclick or a dclick (what ever your preferance).
Put your listbox1 on your dialog, along with a hidden listbox2
On initialze fill your listbox2 with options such as Open, Delete, Remove from view etc.
Fill your listbox1 with (in my case lines of path \ filenames)Then when you click on a line in listbox1 have the script disable listbox1 and make listbox2 visible
Using MDX, when listbox2 becomes visible you can have it postion next to the cursur.
With a few maths you can alter the position of listbox2 so that it can never show overlapping the border of listbox1.
You can also use the on dialog mouse event to to hide the listbox2 and enable the listbox1 (if your mouse goes outside the border of listbox2) ready for the next mouse click.
Obviously on selecting an option in listbox2 the script should also have listbox2 hidden and listbox2 enabled.
I know that DMX would do this better, but it looks like i would have to re-write the whole script using DMX to achieve a simple option menu.
heres an example for the option selection:-
if ($did == <listbox2-ID>) && ($did($dname,<listbox2-ID>).text == $(open)) {
run " $+ $did($dname,<listbox1-ID>).text $+ "
}
Lookin forward to the comments.
Last edited by NoZparker; 22/08/08 04:23 PM.