Popupmenu, and selected menu
Posted on 1999-07-14
I add a Complete listing of Listbox to a popupmenu.
But before I add it I strip all drive information and extensions.
So when clicking on the selected item it returns something like this;
Original Listbox : "G:\DirA\Test.mp3"
Popupmenu : "Test"
I can succesfully get the caption of it using: (Sender As TMenuItem).Caption
But since it is all stripped, I cannot use it to open the new selected file. Is there a Way to get an Integer value of the selected Menu, I didn't find any .Selected value. Is it possible??
Also, How do I clear a popupmenu? There isn't a .Clear procedure??