Page 1 of 1

Tab Drag and Drop

Posted: Fri Apr 19, 2019 3:39 pm
by TomChandler
I'm looking for a way to capture the tab drag and drop event so that I can combine the documents instead of re-ordering them. However, I haven't found a way to either cancel the re-order event, or hook into the drag/drop event. Can someone point me in the right direction?

Re: Tab Drag and Drop

Posted: Mon Apr 22, 2019 7:40 pm
by TomChandler
So I've figured out a way to detect when we're dragging a tab from one location to another, but I still can cancel the re-order event. I need it so I can detect them dropping a tab, but I can't have them move or I get the wrong target. Is there a cancel able event there?

Re: Tab Drag and Drop

Posted: Tue Apr 23, 2019 11:03 am
by Tracker Supp-Stefan
Hello Tom,

Have you tried working with the document ID's directly - and then check the order before and after a drag operation - and merge the necessary ones?

Regards,
Stefan

Re: Tab Drag and Drop

Posted: Tue Apr 23, 2019 12:07 pm
by TomChandler
No, that hadn't occurred to me. I could probably make that work. Is there a way to cancel the drop event all together to avoid that complexity?

Re: Tab Drag and Drop

Posted: Tue Apr 23, 2019 12:18 pm
by Tracker Supp-Stefan
Hello Tom,

The Viewer SDK is quite an older one - and it didn't have all events exposed as far as I remember. I did check the help pages but could not find the answer to your question myself - so I will ask a colleague from the dev team who was working on the Viewer SDK, and see if he can assist further!

Regards,
Stefan

Re: Tab Drag and Drop

Posted: Tue Apr 23, 2019 12:21 pm
by TomChandler
Is there a newer SDK that has similar functionality to the viewer that we should be considering?

Re: Tab Drag and Drop

Posted: Tue Apr 23, 2019 12:23 pm
by Tracker Supp-Stefan
Hello Tom,

That would be the Editor SDK:
https://www.tracker-software.com/produc ... editor-sdk
But it's quite different so there will be quite some learning curve.

Regards,
Stefan

Re: Tab Drag and Drop

Posted: Tue Apr 23, 2019 3:56 pm
by TomChandler
So when I call GetDocumentIndex, it seems to return the index of the document in the array, not the tab index. What's the method to use for the tab index? I'm not finding it in the documentation. Can you point me in the right direction?

Re: Tab Drag and Drop

Posted: Wed Apr 24, 2019 10:03 pm
by TomChandler
Tracker Supp-Stefan wrote:
Tue Apr 23, 2019 12:18 pm
Hello Tom,

The Viewer SDK is quite an older one - and it didn't have all events exposed as far as I remember. I did check the help pages but could not find the answer to your question myself - so I will ask a colleague from the dev team who was working on the Viewer SDK, and see if he can assist further!

Regards,
Stefan
I wanted to see if you got a response back on this? Also, any input on how to get the tab indexes for the document instead of the index in the list of documents? I asked on another message, but I'm also having an issue with the wrong tab closing. I'm wondering if once I get the tab indexes if that will help.

Re: Tab Drag and Drop

Posted: Thu Apr 25, 2019 2:36 pm
by Tracker Supp-Stefan
Hello TomChandler,

Apologies for the delay. I've asked a colleague who worked on the Viewer SDK to take a look again - and we will post an update here shortly!

Regards,
Stefan

Re: Tab Drag and Drop

Posted: Fri Apr 26, 2019 2:12 am
by Vasyl-Tracker Dev Team
Hi Tom.

Unfortunately, there is no way to get index of document's tab.
But we can add simple feature like GetDocumentTabIndex for you.

Cheers.

Re: Tab Drag and Drop

Posted: Fri Apr 26, 2019 12:16 pm
by TomChandler
Vasyl-Tracker Dev Team wrote:
Fri Apr 26, 2019 2:12 am
Hi Tom.

Unfortunately, there is no way to get index of document's tab.
But we can add simple feature like GetDocumentTabIndex for you.

Cheers.
What kind of time frame would there be on that? I have a pretty aggressive due date for this project.

Edit: Is there just a way to get a list of documents and what tab they are on?

Also, any feedback on why when I pass a document ID to the close function it always seems to close the first tab? (It may be the current tab, I haven't experimented yet)