Hi,
I have an mdi app that uses the ultratabbedmdimanager. We would like to be able to tell if a tab is visible (meaning it is the front-most tab in a tab group) so that we only handle updates from our object model in tabs that the user can currently see.
I am not sure how to tell if a tab is the front-most tab in a tab group. Is this possible? I found the tab.isVisible setting, but it returned true even if the tab wasn't front-most. I can't depend on tab.isActive because users may have multiple tab groups so they can see 2 tabs at once - we still want to keep both of those updated.
If anyone knows how to determine this, I'd appreciate help.
Thanks,
~Karen
Thank you very much - that does just what i'm looking for!
Hello ,
Could you please replace in my sample the below if statement
if (tab.UIElement != null && tab.UIElement.IsFullyVisible)
with
if(tab.IsSelected)
where IsSelected tells you which tab is selected and selected tabs in your case are the Form2 and Form1.
Let me know if you have any further questions.
Hi Hristo,
Sorry I didn't see that you had posted an answer last wednesday - for some reason i didn't get an email about it until today.
I just tried your sample application, and it did not do what i wanted. It counted any tab that was showing in the tab areas as visible. For example, if the top group had tabs 0-4 visible and the bottom group had tabs 0-7 visible, and tabs 8-14 were not visible (you had to click on the dropdown on the right of the tab section to see them), then it would have said 13 tabs were visible.
I want to know what single tab is the frontmost in a group - what single tab's form is being shown in a tab group at this moment. I have attached a screenshot of visual studios to help explain. If you look at the screenshot, I am trying to find a property that would give me some sort of reference to the tab Form1.cs on the top, and Form 2.cs [Design] on the bottom. Those are the frontmost tabs in their tab groups. I hope that makes my question a little clearer.
Hello,
I am just checking about the progress of this issue. Did you solve your issue accordingly to the information that I provided you? Did you test the sample I have sent to you?
Let me know if you need any further assistance.
As far as I understand your scenario you want to get which tabs are displayed on the tab group. I have created a sample to illustrate how you could get them. I was using the fact that if the tab is displayed it should has an UIElement. Please run the attached sample, press “Get Count” button then expand the list next to it to see which tabs are fully visible.
Let me know if this is what you are looking for.