I would like to have a new tab button on each tab group, immediately after the last tab, styled as similar as possible to the tabs themselves (i.e. borders, background colors, corner style, etc.). How can I acheive this?
I've been able to place a UI element in the appropriate spot using an IUIElementCreationFilter but getting the styling to match is where I'm having trouble.
Thanks!
If I go with the dummy tab approach, how would I prevent drag-drop between groups for the tab representing the dummy form? What other events should I hook to prevent it from behaving like a "real" tab?
You can try to use a creation filter to place an element in the tab item area. Another way to try this would be to add a "dummy" Form to you MDI parent. Give it the "add new" icon and no caption. Then handle the TabSelecting event of the UltraTabbedMdiManager. When the tab being selected is for this dummy Form, it means the user is clicking the "add new" button tab. Cancel the TabSelecting event, add your new Form, and select it.
Just for clarity, I'm shooting for a "New Tab" button that appears similar to the attached picture, where it looks like a tab, but doesn't actually have a MDI child form associated with it.