A) I would like to prevent the user from closing the last remaining tab in my program.
So, I need to check to see what the total number of open tabs are - if the open tabs > 1, then close the selected tab - else if the open tabs = 1, then do nothing.
I'm not exactly sure how to go about doing this. - specifically the checking of the currently opened tabs.
B) When the user opens a new tab, they remain on their current tab. I dont like that. How can I make the new tab automatically selected once created?
C) I would like to close a tab by right clicking it - that was easy to do on a selected tab, but how can I do this to an unselected tab without actually selecting/opening that tab.
I want to be able to have one tab open, and right click/close any of the available tabs without leaving my current tab. Any thoughts here?
Any help would be greatly appreciated!
Thank you for your time!
So, I need to check to see what the total number of open tabs are - if the open tabs > 1, then close the selected tab - else if the open tabs = 1, then do nothing.
I'm not exactly sure how to go about doing this. - specifically the checking of the currently opened tabs.
B) When the user opens a new tab, they remain on their current tab. I dont like that. How can I make the new tab automatically selected once created?
C) I would like to close a tab by right clicking it - that was easy to do on a selected tab, but how can I do this to an unselected tab without actually selecting/opening that tab.
I want to be able to have one tab open, and right click/close any of the available tabs without leaving my current tab. Any thoughts here?
Any help would be greatly appreciated!
Thank you for your time!