Hi,
my question is if there's currently a chance to show an close-button [x] within the tab-area like illustrated on the image below.
If only found a setting to display the close-button within the caption area - but i wan't a look & feel of such a tab like in current internet-browsers like Firefox / IE ...
Kind regards,
Sassan
Hello Sassan,
If I udnerstand well your requirements, you could solve this task using different approaches. I made small sample for you. Please take a look at the attached sample for more details and let me know if you have any questions.
Regards
Here is the sample
Since I am still not sure what you mean, a screenshot with the wrong and desired look would be very helpful!
As to the way of implementing this - you could use CreationFilter.
You could read about it at the following link: http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Win_Creation_Filter.html.Here are some topics from our community which could also help you: http://community.infragistics.com/forums/t/34485.aspx, http://forums.infragistics.com/forums/t/47561.aspx http://community.infragistics.com/forums/t/58186.aspx, http://community.infragistics.com/forums/t/9989.aspx and http://community.infragistics.com/forums/t/50234.aspx.The above approach is not so recommended, because it features element resizing, creating or removing and could lead to some unexpected behaviors.Please do not hesitate to ask if something comes up.
Hi Boris,
i am not a well painter but i tried my best to show you what i mean.
I didn't had the time to test that creationfilter stuff. If i tried it - i will notice you within this thread.
Hi Sassan,
I meant to upload a screenshot of a real application, showing the component and the desired location of the button, so I can know exactly where you want it and to suggest an approach.
sorry for my late response.
Acutally the application looks like
Only the Tab-Area is visible, caption is set on invisible via setting the imagesizecaption. You see on the screenshot 3 tabs and the last one is active.
What i want is a small close button - like in actual firefox browser versions - behind the tab-text. I've marked the position on the following screenshot with red markers.
I hope that my suggestion is now clear.
Sassan,
Could you please review the sample attached to this post and see if it meets your requirements.Please feel free to let me know if I misunderstood you or if you have any other questions.
I agree 100% - please add this as a feature request for future releases. I am trying to implement this now myself and in our application we are creating / adding / removing panes dynamically so attaching the error handler has become a wee bit trickier as well as positioning the buttons.
Edit:
I have created an official feature request for this here:
http://ideas.infragistics.com/forums/192359-windows-forms/suggestions/4279784-ultradockmanager-option-for-close-buttons-in-tab
If you would like this functionality as well, please go vote for it.
Thanks!
solved the second problem by using a ascii 1 symbol.
So now everything is fine.
Thank you for your patience and help.
Any chance that this will get a build-in functionality for a next release of your controls?
Hi again,
some correction.
By using the tabs rectangle width i was able to solve the positioning problem.
But still have no clue how to extend the tab width by a fixed size to have place for the closing button.
i realised your example within our application and it's getting close to that what i've intented.
But there are 2 problems i can not solve by myself.
First, how to extend the tab - area width, cause they don't have the space for the close buttons without having a overlap of tab-text and the inserted button.
Second, all buttons seems to have the same position related to their owning tab-area. But there is needed a individual placement depending on the owning tab-area element to prevent such a miss-displacement like seen on the screenshot above.