Howdy all,
I am trying to read the number of open sequences in the List Bar so that I can know when there are none to be able to hide/display my custom entry point command buttons. I tried using the following commands:
tsErrChk( TSUI_ListBarGetPages(gMainWindow.listBar, &errorInfo, &pages));
tsErrChk( TSUI_ListBarPagesGetItem(pages, &errorInfo, CA_VariantLong(SEQUENCE_FILES_PAGE_INDEX), &page));
tsErrChk( TSUI_ListBarPagesGetCount (page, &errorInfo, &count));
but it doesn't work properly. I've tried multiple variations on ListBar and TSUI_SequenceFileViewMgrGetConnections commands as well as trying to use the function below
TSUISUPP_SequenceFileListConnectionsGetCount (objectHandle, NULL, &count);
but I can't figure out what Object to use for a handle and if it will return the sequence count or the # of connections.
Any help would be greatly appreciated.
Thanks,
-Jack