Thanx all for reading my question and happy new year!
Here's the deal: I got 5 labels and a listbox. I have made popupmenu with a button "copy to clipboard". For this I use the code:
Which works fine in itself. But! I want to use the same button for all 5 labels and the listbox (to copy the selected item to the clipboard, multiselect is turned off). How do you go about this? I obviously can't use Sender as it is always the same TMenuItem. So what am I to do?
BobbaFet ![[bobafett] [bobafett] [bobafett]](/data/assets/smilies/bobafett.gif)
Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
Great Delphi Websites faq102-5352
Here's the deal: I got 5 labels and a listbox. I have made popupmenu with a button "copy to clipboard". For this I use the code:
Code:
Clipboard.AsText := LinkStorage.Items[i];
or
Clipboard.AsText := MyLabel12345.Caption;
Which works fine in itself. But! I want to use the same button for all 5 labels and the listbox (to copy the selected item to the clipboard, multiselect is turned off). How do you go about this? I obviously can't use Sender as it is always the same TMenuItem. So what am I to do?
![[bobafett] [bobafett] [bobafett]](/data/assets/smilies/bobafett.gif)
![[bobafett] [bobafett] [bobafett]](/data/assets/smilies/bobafett.gif)
Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
Great Delphi Websites faq102-5352