FQID of view and multiwindow in a background plugin ?

In the smart client I generate 6 multiwindows with the “OpenFloatingWindow” command. There is a six view layout on every window. With a background plugin based on “ActiveElementsOverlay” I generate a button as a mouse target on every view. Now I can drag & drop on this button and generate an udp sending action there. So far it works fine. Now I have the problem, that I need to know the FQID of the view, where the drop action took place.(As I have 36 of them) Is there a possibility to find this out in the click event ? Somewehere in this routine ?

private void Button_Click(object sender, RoutedEventArgs e)

   {

       String KameraText = null;

       if (Clipboard.ContainsText(TextDataFormat.Text))

       {

           KameraText = Clipboard.GetText(TextDataFormat.Text);

         SendUdp(9998, m\_sRemoteIp, IRemotePort, Encoding.ASCII.GetBytes("Dropped: "+KameraText)); 

       }

       else  SendUdp(9998, m\_sRemoteIp, IRemotePort, Encoding.ASCII.GetBytes(("Clipboard empty!"));

   }

Or do I have to go another way ?

I have an idea that when you create the button you could fill a dictitionary so that the button is the key and the ImageViewerAddOn is the value and in this way you can find the information when needed. I have a feeling that it will not be possible to look this up otherwise.

Thank you very much for the hint, it works fine !

I gave the button a tag, which identifies the Object Id of the view, now I know in which view the button is pressed.

But there is another small question: Because it is a layout with 6 views, I also need the index of the view. Is there a possibility to find this out?

I tried your example from 3 years ago: https://developer.milestonesys.com/s/question/0D50O00003i0i09SAA/can-i-find-the-index-of-the-selected-viewitem?t=1596128723625

I think I understood how to handle, but cant find the “getindex” function ?

Do you have another useful hint ?

I could not find my old coding. I strongly suspect that the “index” is a Property in the viewItemInstance object and all the getIndex method do is to fetch it out given the viewItemInstance. Please set a breakpoint and explore the viewItemInstance object.